Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Jun 2013 18:46:46 +0000 (UTC)
From:      Guy Helmer <ghelmer@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r251627 - head/libexec/atrun
Message-ID:  <201306111846.r5BIkk2Q048394@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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");



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201306111846.r5BIkk2Q048394>