diff options
author | cracauer <cracauer@FreeBSD.org> | 1999-11-29 19:11:01 +0000 |
---|---|---|
committer | cracauer <cracauer@FreeBSD.org> | 1999-11-29 19:11:01 +0000 |
commit | 903b2c868c14cd85dd3b2e2675969b9cb17f94ea (patch) | |
tree | 6ca499c12c2fb731744e3f10743e0e08fdad94e3 /bin/sh/show.c | |
parent | 80af32c97b108dacf6028b29ecae08e5da839113 (diff) | |
download | FreeBSD-src-903b2c868c14cd85dd3b2e2675969b9cb17f94ea.zip FreeBSD-src-903b2c868c14cd85dd3b2e2675969b9cb17f94ea.tar.gz |
Include strerror(errno) in error messages after failed system calls.
Fix a warning.
Diffstat (limited to 'bin/sh/show.c')
-rw-r--r-- | bin/sh/show.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/sh/show.c b/bin/sh/show.c index 620ffa4..b8c6f20b 100644 --- a/bin/sh/show.c +++ b/bin/sh/show.c @@ -420,7 +420,7 @@ opentrace() { scopy("./trace", s); #endif /* not_this_way */ if ((tracefile = fopen(s, "a")) == NULL) { - fprintf(stderr, "Can't open %s\n", s); + fprintf(stderr, "Can't open %s: %s\n", s, strerror(errno)); return; } #ifdef O_APPEND |