From 6b083345307aa1fdbc48eaf247c80b4c4982b2ee Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Thu, 2 Sep 2021 14:57:18 -0400 Subject: eval: Use 512-byte blocks for -ls when POSIXLY_CORRECT is set This matches the behaviour of GNU find, and allows bfs to match the output of BSD find as well. Fixes #77. --- ctx.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ctx.h') diff --git a/ctx.h b/ctx.h index 7af4060..f089b84 100644 --- a/ctx.h +++ b/ctx.h @@ -1,6 +1,6 @@ /**************************************************************************** * bfs * - * Copyright (C) 2015-2020 Tavian Barnes * + * Copyright (C) 2015-2021 Tavian Barnes * * * * Permission to use, copy, modify, and/or distribute this software for any * * purpose with or without fee is hereby granted. * @@ -82,6 +82,8 @@ struct bfs_ctx { enum debug_flags debug; /** Whether to ignore deletions that race with bfs (-ignore_readdir_race). */ bool ignore_races; + /** Whether to follow POSIXisms more closely ($POSIXLY_CORRECT). */ + bool posixly_correct; /** Whether to show a status bar (-status). */ bool status; /** Whether to only return unique files (-unique). */ -- cgit v1.2.3