summaryrefslogtreecommitdiffstats
path: root/libexec
diff options
context:
space:
mode:
authorghelmer <ghelmer@FreeBSD.org>2013-06-11 18:46:46 +0000
committerghelmer <ghelmer@FreeBSD.org>2013-06-11 18:46:46 +0000
commit0ae9c65c0f385ead30d33793507556ef4639f6e5 (patch)
treec4faa7191ac1e8b2508e56a0c10a6ef1b8ed0b4a /libexec
parentacb2956b5be212b08e52b54998f877ce63d5422a (diff)
downloadFreeBSD-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')
-rw-r--r--libexec/atrun/atrun.c2
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");
OpenPOWER on IntegriCloud