diff options
author | jkh <jkh@FreeBSD.org> | 1996-07-10 11:38:29 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1996-07-10 11:38:29 +0000 |
commit | 9e15f9a31f4d8a51406b555accf7c66520a583c8 (patch) | |
tree | f8e5d5bea94366a483571cdf0d8f296fdf3e8ca1 /release/sysinstall/system.c | |
parent | e63b920bacf1d4ea8002f3fff5029c62c7c1b46a (diff) | |
download | FreeBSD-src-9e15f9a31f4d8a51406b555accf7c66520a583c8.zip FreeBSD-src-9e15f9a31f4d8a51406b555accf7c66520a583c8.tar.gz |
Better error checking in helpfile expander.
Tart up some of the output a little.
Diffstat (limited to 'release/sysinstall/system.c')
-rw-r--r-- | release/sysinstall/system.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/release/sysinstall/system.c b/release/sysinstall/system.c index 4dce756..3cb6e47 100644 --- a/release/sysinstall/system.c +++ b/release/sysinstall/system.c @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id: system.c,v 1.60 1996/07/05 08:36:02 jkh Exp $ + * $Id: system.c,v 1.61 1996/07/08 08:54:34 jkh Exp $ * * Jordan Hubbard * @@ -47,7 +47,7 @@ expand(char *fname) { Mkdir(DOC_TMP_DIR); unlink(DOC_TMP_FILE); - if (vsystem("gzip -c -d %s > %s", fname, DOC_TMP_FILE)) + if (!file_readable(fname) || vsystem("gzip -c -d %s > %s", fname, DOC_TMP_FILE)) return NULL; return DOC_TMP_FILE; } @@ -249,8 +249,6 @@ vsystem(char *fmt, ...) else if (!pid) { /* Junior */ (void)sigsetmask(omask); if (DebugFD != -1) { - if (OnVTY && isDebug() && RunningAsInit) - msgInfo("Command output is on VTY2 - type ALT-F2 to see it"); dup2(DebugFD, 0); dup2(DebugFD, 1); dup2(DebugFD, 2); |