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");
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to