diff options
| -rw-r--r-- | release/sysinstall/dist.c | 4 | ||||
| -rw-r--r-- | release/sysinstall/msg.c | 4 | ||||
| -rw-r--r-- | release/sysinstall/package.c | 4 | ||||
| -rw-r--r-- | release/sysinstall/system.c | 6 | ||||
| -rw-r--r-- | usr.sbin/sade/msg.c | 4 | ||||
| -rw-r--r-- | usr.sbin/sade/system.c | 6 | ||||
| -rw-r--r-- | usr.sbin/sysinstall/dist.c | 4 | ||||
| -rw-r--r-- | usr.sbin/sysinstall/msg.c | 4 | ||||
| -rw-r--r-- | usr.sbin/sysinstall/package.c | 4 | ||||
| -rw-r--r-- | usr.sbin/sysinstall/system.c | 6 |
10 files changed, 17 insertions, 29 deletions
diff --git a/release/sysinstall/dist.c b/release/sysinstall/dist.c index 0ecdbd01eab6e..79b72184bff44 100644 --- a/release/sysinstall/dist.c +++ b/release/sysinstall/dist.c @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id: dist.c,v 1.63 1996/07/09 16:28:59 jkh Exp $ + * $Id: dist.c,v 1.64 1996/07/09 16:57:14 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -461,7 +461,7 @@ distExtract(char *parent, Distribution *me) seconds = stop.tv_sec + (stop.tv_usec / 1000000.0); if (!seconds) seconds = 1; - msgInfo("%d bytes read from %s dist, chunk %d of %d @ %-4.1f KB/sec.", + msgInfo("%10d bytes read from %s dist, chunk %2d of %2d @ %4.1f KB/sec.", total, dist, chunk + 1, numchunks, (chunktotal / seconds) / 1024.0); retval = write(fd2, buf, n); if (retval != n) { diff --git a/release/sysinstall/msg.c b/release/sysinstall/msg.c index fe40ce6879e53..f37b0d37ddb8f 100644 --- a/release/sysinstall/msg.c +++ b/release/sysinstall/msg.c @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id: msg.c,v 1.35 1996/06/08 09:08:43 jkh Exp $ + * $Id: msg.c,v 1.36 1996/06/14 14:33:57 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -319,8 +319,6 @@ msgWeHaveOutput(char *fmt, ...) msgDebug("Notify: %s\n", errstr); dialog_clear(); dialog_msgbox("Information Dialog", errstr, -1, -1, 0); - if (OnVTY) - msgInfo("Command output is on VTY2 - type ALT-F2 to see it"); } /* Simple versions of msgConfirm() and msgNotify() for calling from scripts */ diff --git a/release/sysinstall/package.c b/release/sysinstall/package.c index 881facbd1f12f..9357cc15ce2d4 100644 --- a/release/sysinstall/package.c +++ b/release/sysinstall/package.c @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id: package.c,v 1.41 1996/07/08 08:54:32 jkh Exp $ + * $Id: package.c,v 1.42 1996/07/09 14:28:20 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -155,7 +155,7 @@ package_extract(Device *dev, char *name, Boolean depended) seconds = stop.tv_sec + (stop.tv_usec / 1000000.0); if (!seconds) seconds = 1; - msgInfo("%d bytes read from package %s @ %.1f KBytes/second", tot, name, (tot / seconds) / 1024.0); + msgInfo("%10d bytes read from package %s @ %4.1f KBytes/second", tot, name, (tot / seconds) / 1024.0); /* Write it out */ if (write(pfd[1], buf, i) != i) { msgInfo("Write failure to pkg_add! Package may be corrupt."); diff --git a/release/sysinstall/system.c b/release/sysinstall/system.c index 4dce756208ed5..3cb6e47baaeff 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); diff --git a/usr.sbin/sade/msg.c b/usr.sbin/sade/msg.c index fe40ce6879e53..f37b0d37ddb8f 100644 --- a/usr.sbin/sade/msg.c +++ b/usr.sbin/sade/msg.c @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id: msg.c,v 1.35 1996/06/08 09:08:43 jkh Exp $ + * $Id: msg.c,v 1.36 1996/06/14 14:33:57 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -319,8 +319,6 @@ msgWeHaveOutput(char *fmt, ...) msgDebug("Notify: %s\n", errstr); dialog_clear(); dialog_msgbox("Information Dialog", errstr, -1, -1, 0); - if (OnVTY) - msgInfo("Command output is on VTY2 - type ALT-F2 to see it"); } /* Simple versions of msgConfirm() and msgNotify() for calling from scripts */ diff --git a/usr.sbin/sade/system.c b/usr.sbin/sade/system.c index 4dce756208ed5..3cb6e47baaeff 100644 --- a/usr.sbin/sade/system.c +++ b/usr.sbin/sade/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); diff --git a/usr.sbin/sysinstall/dist.c b/usr.sbin/sysinstall/dist.c index 0ecdbd01eab6e..79b72184bff44 100644 --- a/usr.sbin/sysinstall/dist.c +++ b/usr.sbin/sysinstall/dist.c @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id: dist.c,v 1.63 1996/07/09 16:28:59 jkh Exp $ + * $Id: dist.c,v 1.64 1996/07/09 16:57:14 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -461,7 +461,7 @@ distExtract(char *parent, Distribution *me) seconds = stop.tv_sec + (stop.tv_usec / 1000000.0); if (!seconds) seconds = 1; - msgInfo("%d bytes read from %s dist, chunk %d of %d @ %-4.1f KB/sec.", + msgInfo("%10d bytes read from %s dist, chunk %2d of %2d @ %4.1f KB/sec.", total, dist, chunk + 1, numchunks, (chunktotal / seconds) / 1024.0); retval = write(fd2, buf, n); if (retval != n) { diff --git a/usr.sbin/sysinstall/msg.c b/usr.sbin/sysinstall/msg.c index fe40ce6879e53..f37b0d37ddb8f 100644 --- a/usr.sbin/sysinstall/msg.c +++ b/usr.sbin/sysinstall/msg.c @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id: msg.c,v 1.35 1996/06/08 09:08:43 jkh Exp $ + * $Id: msg.c,v 1.36 1996/06/14 14:33:57 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -319,8 +319,6 @@ msgWeHaveOutput(char *fmt, ...) msgDebug("Notify: %s\n", errstr); dialog_clear(); dialog_msgbox("Information Dialog", errstr, -1, -1, 0); - if (OnVTY) - msgInfo("Command output is on VTY2 - type ALT-F2 to see it"); } /* Simple versions of msgConfirm() and msgNotify() for calling from scripts */ diff --git a/usr.sbin/sysinstall/package.c b/usr.sbin/sysinstall/package.c index 881facbd1f12f..9357cc15ce2d4 100644 --- a/usr.sbin/sysinstall/package.c +++ b/usr.sbin/sysinstall/package.c @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id: package.c,v 1.41 1996/07/08 08:54:32 jkh Exp $ + * $Id: package.c,v 1.42 1996/07/09 14:28:20 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -155,7 +155,7 @@ package_extract(Device *dev, char *name, Boolean depended) seconds = stop.tv_sec + (stop.tv_usec / 1000000.0); if (!seconds) seconds = 1; - msgInfo("%d bytes read from package %s @ %.1f KBytes/second", tot, name, (tot / seconds) / 1024.0); + msgInfo("%10d bytes read from package %s @ %4.1f KBytes/second", tot, name, (tot / seconds) / 1024.0); /* Write it out */ if (write(pfd[1], buf, i) != i) { msgInfo("Write failure to pkg_add! Package may be corrupt."); diff --git a/usr.sbin/sysinstall/system.c b/usr.sbin/sysinstall/system.c index 4dce756208ed5..3cb6e47baaeff 100644 --- a/usr.sbin/sysinstall/system.c +++ b/usr.sbin/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); |
