summaryrefslogtreecommitdiff
path: root/src/ls.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2005-12-17 10:33:08 +0000
committerJim Meyering <jim@meyering.net>2005-12-17 10:33:08 +0000
commite6ece7ba6cea1a99c52a409138a842f4bc0b5ceb (patch)
tree356c22a7d58f2dfd02c0a07df00a926ecfb7b381 /src/ls.c
parent3c0d9bc5132a689862b6d0f3e3fbfa9dfb4ed9ba (diff)
downloadcoreutils-e6ece7ba6cea1a99c52a409138a842f4bc0b5ceb.tar.xz
Switch back from HAVE_ACL to USE_ACL: The acl() syscall
is no requirement for ACL support; particularly, it does not exist on systems that have POSIX ACLs.
Diffstat (limited to 'src/ls.c')
-rw-r--r--src/ls.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ls.c b/src/ls.c
index 99585f413..83a16fbcd 100644
--- a/src/ls.c
+++ b/src/ls.c
@@ -193,13 +193,13 @@ struct fileinfo
enum filetype filetype;
-#if HAVE_ACL
+#if USE_ACL
/* For long listings, true if the file has an access control list. */
bool have_acl;
#endif
};
-#if HAVE_ACL
+#if USE_ACL
# define FILE_HAS_ACL(F) ((F)->have_acl)
#else
# define FILE_HAS_ACL(F) 0
@@ -334,7 +334,7 @@ static int current_time_ns = -1;
/* Whether any of the files has an ACL. This affects the width of the
mode column. */
-#if HAVE_ACL
+#if USE_ACL
static bool any_has_acl;
#else
enum { any_has_acl = false };
@@ -2477,7 +2477,7 @@ clear_files (void)
}
files_index = 0;
-#if HAVE_ACL
+#if USE_ACL
any_has_acl = false;
#endif
inode_number_width = 0;
@@ -2588,7 +2588,7 @@ gobble_file (char const *name, enum filetype type, bool command_line_arg,
return 0;
}
-#if HAVE_ACL
+#if USE_ACL
if (format == long_format)
{
int n = file_has_acl (absolute_name, &f->stat);