diff options
author | jkh <jkh@FreeBSD.org> | 1996-07-08 08:54:36 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1996-07-08 08:54:36 +0000 |
commit | 7e51f09a84728ab85cf82db31aad751f4aca98cb (patch) | |
tree | 412d8ec8d51ea1577e0884b928bfc378d1f29f28 /usr.sbin/sysinstall/system.c | |
parent | 824afef0c4ffcf3871a0091dfb4fb8af21888b56 (diff) | |
download | FreeBSD-src-7e51f09a84728ab85cf82db31aad751f4aca98cb.zip FreeBSD-src-7e51f09a84728ab85cf82db31aad751f4aca98cb.tar.gz |
Whoops! Now that I'm decompressing docs into /tmp, it's important to
make sure that /tmp is there first! :-) While I'm at it, clean up the
somewhat inexplicably bogus Mkdir() function.
Diffstat (limited to 'usr.sbin/sysinstall/system.c')
-rw-r--r-- | usr.sbin/sysinstall/system.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/sysinstall/system.c b/usr.sbin/sysinstall/system.c index 936456b..4dce756 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.59 1996/05/16 11:47:46 jkh Exp $ + * $Id: system.c,v 1.60 1996/07/05 08:36:02 jkh Exp $ * * Jordan Hubbard * @@ -26,6 +26,7 @@ /* Where we stick our temporary expanded doc file */ +#define DOC_TMP_DIR "/tmp" #define DOC_TMP_FILE "/tmp/doc.tmp" /* @@ -44,6 +45,7 @@ handle_intr(int sig) static char * expand(char *fname) { + Mkdir(DOC_TMP_DIR); unlink(DOC_TMP_FILE); if (vsystem("gzip -c -d %s > %s", fname, DOC_TMP_FILE)) return NULL; |