[Midnightbsd-cvs] src [8682] trunk/usr.bin/truss/main.c: truss: if file requested with -o flazg could not be opened print the reason
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sun Sep 25 18:01:54 EDT 2016
Revision: 8682
http://svnweb.midnightbsd.org/src/?rev=8682
Author: laffer1
Date: 2016-09-25 18:01:54 -0400 (Sun, 25 Sep 2016)
Log Message:
-----------
truss: if file requested with -o flazg could not be opened print the reason
Modified Paths:
--------------
trunk/usr.bin/truss/main.c
Modified: trunk/usr.bin/truss/main.c
===================================================================
--- trunk/usr.bin/truss/main.c 2016-09-25 22:01:24 UTC (rev 8681)
+++ trunk/usr.bin/truss/main.c 2016-09-25 22:01:54 UTC (rev 8682)
@@ -235,7 +235,7 @@
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 Midnightbsd-cvs
mailing list