diff options
author | ghelmer <ghelmer@FreeBSD.org> | 2013-06-11 18:46:46 +0000 |
---|---|---|
committer | ghelmer <ghelmer@FreeBSD.org> | 2013-06-11 18:46:46 +0000 |
commit | 0ae9c65c0f385ead30d33793507556ef4639f6e5 (patch) | |
tree | c4faa7191ac1e8b2508e56a0c10a6ef1b8ed0b4a /libexec/atrun | |
parent | acb2956b5be212b08e52b54998f877ce63d5422a (diff) | |
download | FreeBSD-src-0ae9c65c0f385ead30d33793507556ef4639f6e5.zip FreeBSD-src-0ae9c65c0f385ead30d33793507556ef4639f6e5.tar.gz |
Add the name of the file that could not be opened to the error message
regarding the failure.
Suggested while working on PR bin/113239.
Diffstat (limited to 'libexec/atrun')
-rw-r--r-- | libexec/atrun/atrun.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libexec/atrun/atrun.c b/libexec/atrun/atrun.c index 745d11e..594107e 100644 --- a/libexec/atrun/atrun.c +++ b/libexec/atrun/atrun.c @@ -198,7 +198,7 @@ run_file(const char *filename, uid_t uid, gid_t gid) PRIV_END if (stream == NULL) - perr("cannot open input file"); + perr("cannot open input file %s", filename); if ((fd_in = dup(fileno(stream))) <0) perr("error duplicating input file descriptor"); |