summaryrefslogtreecommitdiffstats
path: root/usr.bin/truss
diff options
context:
space:
mode:
authormjg <mjg@FreeBSD.org>2013-01-27 03:14:54 +0000
committermjg <mjg@FreeBSD.org>2013-01-27 03:14:54 +0000
commit1f183c28728c5adc2b77e3dcd95cb6abec4c4174 (patch)
treee27bbc39ca903cea9c7e87bb64560c1943dace00 /usr.bin/truss
parentfc8455d8394673244b44920a64cd4641022153db (diff)
downloadFreeBSD-src-1f183c28728c5adc2b77e3dcd95cb6abec4c4174.zip
FreeBSD-src-1f183c28728c5adc2b77e3dcd95cb6abec4c4174.tar.gz
truss: if file requested with -o flag could not be opened print the reason
MFC after: 3 days
Diffstat (limited to 'usr.bin/truss')
-rw-r--r--usr.bin/truss/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/truss/main.c b/usr.bin/truss/main.c
index 02c6930..2b72c95 100644
--- a/usr.bin/truss/main.c
+++ b/usr.bin/truss/main.c
@@ -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.
OpenPOWER on IntegriCloud