svn commit: r245956 - head/usr.bin/truss

Mateusz Guzik mjg at FreeBSD.org
Sun Jan 27 03:14:55 UTC 2013


Author: mjg
Date: Sun Jan 27 03:14:54 2013
New Revision: 245956
URL: http://svnweb.freebsd.org/changeset/base/245956

Log:
  truss: if file requested with -o flag could not be opened print the reason
  
  MFC after:	3 days

Modified:
  head/usr.bin/truss/main.c

Modified: head/usr.bin/truss/main.c
==============================================================================
--- head/usr.bin/truss/main.c	Sun Jan 27 01:17:37 2013	(r245955)
+++ head/usr.bin/truss/main.c	Sun Jan 27 03:14:54 2013	(r245956)
@@ -235,7 +235,7 @@ main(int ac, char **av)
 
 	if (fname != NULL) { /* Use output file */
 		if ((trussinfo->outfile = fopen(fname, "w")) == NULL)
-			errx(1, "cannot open %s", fname);
+			err(1, "cannot open %s", fname);
 		/*
 		 * Set FD_CLOEXEC, so that the output file is not shared with
 		 * the traced process.


More information about the svn-src-all mailing list