diff options
author | mjg <mjg@FreeBSD.org> | 2013-01-27 03:14:54 +0000 |
---|---|---|
committer | mjg <mjg@FreeBSD.org> | 2013-01-27 03:14:54 +0000 |
commit | 1f183c28728c5adc2b77e3dcd95cb6abec4c4174 (patch) | |
tree | e27bbc39ca903cea9c7e87bb64560c1943dace00 /usr.bin | |
parent | fc8455d8394673244b44920a64cd4641022153db (diff) | |
download | FreeBSD-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')
-rw-r--r-- | usr.bin/truss/main.c | 2 |
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. |