svn commit: r251627 - head/libexec/atrun
Guy Helmer
ghelmer at FreeBSD.org
Tue Jun 11 18:46:47 UTC 2013
Author: ghelmer
Date: Tue Jun 11 18:46:46 2013
New Revision: 251627
URL: http://svnweb.freebsd.org/changeset/base/251627
Log:
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.
Modified:
head/libexec/atrun/atrun.c
Modified: head/libexec/atrun/atrun.c
==============================================================================
--- head/libexec/atrun/atrun.c Tue Jun 11 18:46:37 2013 (r251626)
+++ head/libexec/atrun/atrun.c Tue Jun 11 18:46:46 2013 (r251627)
@@ -198,7 +198,7 @@ run_file(const char *filename, uid_t uid
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");
More information about the svn-src-all
mailing list