summaryrefslogtreecommitdiff
path: root/setfacl
diff options
context:
space:
mode:
authorNathan Scott <nathans@sgi.com>2003-03-03 22:40:05 +0000
committerNathan Scott <nathans@sgi.com>2003-03-03 22:40:05 +0000
commit66ba00f30d97db585977f97177b02e2653df8503 (patch)
treeb447abf4c57699537c4a268340a7cd54fecf65e9 /setfacl
parent1b200578a5ef4241a4c91a82bd5898a9230d06c5 (diff)
downloadacl-66ba00f30d97db585977f97177b02e2653df8503.tar.gz
Tweak error reporting (patch from AndreasG) - also show path on error.
Diffstat (limited to 'setfacl')
-rw-r--r--setfacl/setfacl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/setfacl/setfacl.c b/setfacl/setfacl.c
index fd0945f..fb02dd6 100644
--- a/setfacl/setfacl.c
+++ b/setfacl/setfacl.c
@@ -309,7 +309,8 @@ int walk_tree(const char *file, seq_t seq)
__errors = 0;
__seq = seq;
if (nftw(file, __do_set, 0, opt_walk_physical * FTW_PHYS) < 0) {
- fprintf(stderr, "%s: %s\n", progname, strerror(errno));
+ fprintf(stderr, "%s: %s: %s\n", progname,
+ file, strerror(errno));
__errors++;
}
return __errors;