diff options
author | Andreas Gruenbacher <agruen@suse.de> | 2009-06-23 11:35:28 +0200 |
---|---|---|
committer | Andreas Gruenbacher <agruen@suse.de> | 2009-06-23 11:35:28 +0200 |
commit | 7db61f81d7ed18a204a53f3bb3392ee03ff34291 (patch) | |
tree | 66a256d21fa0eff85380571bed2bc9161f4a921e | |
parent | 76057206e0adab19078d0c949652c500a2a80333 (diff) | |
download | acl-7db61f81d7ed18a204a53f3bb3392ee03ff34291.tar.gz |
Omit flags comments when POSIXLY_CORRECT is set
-rw-r--r-- | getfacl/getfacl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/getfacl/getfacl.c b/getfacl/getfacl.c index ed12eda..f8eaf25 100644 --- a/getfacl/getfacl.c +++ b/getfacl/getfacl.c @@ -510,7 +510,7 @@ int do_print(const char *path_p, const struct stat *st, int walk_flags, void *un xquote(user_name(st->st_uid, opt_numeric), " \t\n\r")); printf("# group: %s\n", xquote(group_name(st->st_gid, opt_numeric), " \t\n\r")); - if (st->st_mode & (S_ISVTX | S_ISUID | S_ISGID)) + if ((st->st_mode & (S_ISVTX | S_ISUID | S_ISGID)) && !posixly_correct) printf("# flags: %s\n", flagstr(st->st_mode)); } if (acl != NULL) { |