summaryrefslogtreecommitdiffstats
path: root/bin/setfacl
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2003-07-18 16:00:26 +0000
committerrwatson <rwatson@FreeBSD.org>2003-07-18 16:00:26 +0000
commit84028ec044cca56fe38caa1cf44ec2fbd72f2188 (patch)
tree152532eb2fff7bec8ec962f923065d7685806ba0 /bin/setfacl
parent588991f4c82520c4f2abd21aa4868c3c97d84668 (diff)
downloadFreeBSD-src-84028ec044cca56fe38caa1cf44ec2fbd72f2188.zip
FreeBSD-src-84028ec044cca56fe38caa1cf44ec2fbd72f2188.tar.gz
When reporting an error internalizing an ACL string, print out the
ACL that generated the error, rather than the function, which is more user-friendly. Obtained from: TrustedBSD Project Product of: France
Diffstat (limited to 'bin/setfacl')
-rw-r--r--bin/setfacl/setfacl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/setfacl/setfacl.c b/bin/setfacl/setfacl.c
index d27285c..1709769 100644
--- a/bin/setfacl/setfacl.c
+++ b/bin/setfacl/setfacl.c
@@ -153,7 +153,7 @@ main(int argc, char *argv[])
entry = zmalloc(sizeof(struct sf_entry));
entry->acl = acl_from_text(optarg);
if (entry->acl == NULL)
- err(1, "acl_from_text() failed");
+ err(1, "%s", optarg);
entry->op = OP_MERGE_ACL;
TAILQ_INSERT_TAIL(&entrylist, entry, next);
break;
@@ -164,7 +164,7 @@ main(int argc, char *argv[])
entry = zmalloc(sizeof(struct sf_entry));
entry->acl = acl_from_text(optarg);
if (entry->acl == NULL)
- err(1, "acl_from_text() failed");
+ err(1, "%s", optarg);
entry->op = OP_REMOVE_ACL;
TAILQ_INSERT_TAIL(&entrylist, entry, next);
break;
OpenPOWER on IntegriCloud