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:
parent
2b0cbe6d3a
commit
94d5234b59
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user