From 0ae9c65c0f385ead30d33793507556ef4639f6e5 Mon Sep 17 00:00:00 2001 From: ghelmer Date: Tue, 11 Jun 2013 18:46:46 +0000 Subject: 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. --- libexec/atrun/atrun.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libexec') 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"); -- cgit v1.1