diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2018-06-19 20:46:41 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2018-06-19 20:46:41 -0400 |
commit | 3e0eb2892926b3cbcd95a08de8f4b06164c38d58 (patch) | |
tree | 8f7d5f4f3681ae913b021b444c57997cbb1efef6 /eval.c | |
parent | 07f7a1effc353ce66f268e26ba2625e20067dddb (diff) | |
download | bfs-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |