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.
This commit is contained in:
Guy Helmer 2013-06-11 18:46:46 +00:00
parent 2b0cbe6d3a
commit 94d5234b59

View File

@ -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");