summaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2018-06-19 20:46:41 -0400
committerTavian Barnes <tavianator@tavianator.com>2018-06-19 20:46:41 -0400
commit3e0eb2892926b3cbcd95a08de8f4b06164c38d58 (patch)
tree8f7d5f4f3681ae913b021b444c57997cbb1efef6 /eval.c
parent07f7a1effc353ce66f268e26ba2625e20067dddb (diff)
downloadbfs-3e0eb2892926b3cbcd95a08de8f4b06164c38d58.tar.xz
eval: Don't use %m to report a non-errno error
Fixes: 2a45ad01e211d0b36056c21d5211be46195b273d
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/eval.c b/eval.c
index 9bb4f04..a4ee5c5 100644
--- a/eval.c
+++ b/eval.c
@@ -1087,7 +1087,7 @@ static enum bftw_action cmdline_callback(struct BFTW *ftwbuf, void *ptr) {
if (ftwbuf->typeflag == BFTW_ERROR) {
if (!eval_should_ignore(&state, ftwbuf->error)) {
args->ret = EXIT_FAILURE;
- cfprintf(cmdline->cerr, "%{er}error: '%s': %m%{rs}\n", ftwbuf->path);
+ cfprintf(cmdline->cerr, "%{er}error: '%s': %s%{rs}\n", ftwbuf->path, strerror(ftwbuf->error));
}
state.action = BFTW_SKIP_SUBTREE;
goto done;