Author: mjg
Date: Thu Jan 31 01:15:12 2013
New Revision: 246142
URL: http://svnweb.freebsd.org/changeset/base/246142
Log:
MFC r245956:
truss: if file requested with -o flag could not be opened print the reason
Modified:
stable/9/usr.bin/truss/main.c
Directory Properties:
stable/9/usr.bin/truss/ (props changed)
Modified: stable/9/usr.bin/truss/main.c
==============================================================================
--- stable/9/usr.bin/truss/main.c Thu Jan 31 00:14:25 2013
(r246141)
+++ stable/9/usr.bin/truss/main.c Thu Jan 31 01:15:12 2013
(r246142)
@@ -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.
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-stable-9
To unsubscribe, send any mail to "[email protected]"