diff options
author | Jordan K. Hubbard <jkh@FreeBSD.org> | 1995-06-09 11:00:52 +0000 |
---|---|---|
committer | Jordan K. Hubbard <jkh@FreeBSD.org> | 1995-06-09 11:00:52 +0000 |
commit | de2912df026c82bb09a1afe9b3e3f6f9cacb763a (patch) | |
tree | 1a7632457f409b1fe06dc3ee18bafc2c26b02cc4 | |
parent | db1138e173075d52019227f73dd3b30b38a0d240 (diff) | |
download | src-de2912df026c82bb09a1afe9b3e3f6f9cacb763a.tar.gz src-de2912df026c82bb09a1afe9b3e3f6f9cacb763a.zip |
Fix a minor bug in the help file decompressor.
Notes
Notes:
svn path=/releng/2.0.5/; revision=9172
-rw-r--r-- | release/sysinstall/system.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/release/sysinstall/system.c b/release/sysinstall/system.c index 96c0a104f214..3bba9214118b 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.43.2.11 1995/06/06 09:27:10 jkh Exp $ + * $Id: system.c,v 1.43.2.12 1995/06/08 09:40:43 jkh Exp $ * * Jordan Hubbard * @@ -163,11 +163,17 @@ systemHelpFile(char *file, char *buf) if (file_readable(buf)) return buf; if (*oldfile) { - unlink(oldfile); - rmdir(oldlang); + int i; + + i = unlink(oldfile); + if (isDebug()) + msgDebug("Unlink(%s) = %d\n", oldfile, i); + i = rmdir(oldlang); + if (isDebug()) + msgDebug("rmdir(%s) = %d\n", oldlang, i); } strcpy(oldfile, buf); - strcpy(oldlang, cp); + sprintf(oldlang, "/stand/%s", cp); snprintf(extract, 64, "%s/%s", cp, file); vsystem("cd /stand && zcat help.tgz | cpio --format=tar -idv %s > /dev/null 2>&1", extract); if (file_readable(buf)) |