diff options
| author | Martin Cracauer <cracauer@FreeBSD.org> | 1999-11-29 19:11:01 +0000 |
|---|---|---|
| committer | Martin Cracauer <cracauer@FreeBSD.org> | 1999-11-29 19:11:01 +0000 |
| commit | 6c48b6cf75960ede12a39f91a6c87ad709c6c47e (patch) | |
| tree | fe2418bc458916f4034cdf37c5721762619e7404 /bin/sh/mkinit.c | |
| parent | 886530ab78a8ea94d73a77505986d3ca7a5dae09 (diff) | |
Notes
Diffstat (limited to 'bin/sh/mkinit.c')
| -rw-r--r-- | bin/sh/mkinit.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/sh/mkinit.c b/bin/sh/mkinit.c index e6de2d2fb245..b8f8ffbe9cc8 100644 --- a/bin/sh/mkinit.c +++ b/bin/sh/mkinit.c @@ -66,6 +66,7 @@ static const char rcsid[] = #include <string.h> #include <fcntl.h> #include <unistd.h> +#include <errno.h> /* @@ -478,7 +479,7 @@ ckfopen(file, mode) FILE *fp; if ((fp = fopen(file, mode)) == NULL) { - fprintf(stderr, "Can't open %s\n", file); + fprintf(stderr, "Can't open %s: %s\n", file, strerror(errno)); exit(2); } return fp; |
