From 94d5234b59784b2fc14e82e67bda8118c04fe091 Mon Sep 17 00:00:00 2001 From: Guy Helmer Date: Tue, 11 Jun 2013 18:46:46 +0000 Subject: [PATCH] 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(-) diff --git a/libexec/atrun/atrun.c b/libexec/atrun/atrun.c index 745d11e00337..594107e3d2c1 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");