diff options
author | jkh <jkh@FreeBSD.org> | 1997-01-16 15:00:25 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1997-01-16 15:00:25 +0000 |
commit | 21695ece5ead7b2fd8511ac5906366cf3a3364a0 (patch) | |
tree | 9e00f6901f2f6c7668caef021d0a7e695793139a | |
parent | ef44e0f0bef59f33011e9ce853127051ddcca031 (diff) | |
download | FreeBSD-src-21695ece5ead7b2fd8511ac5906366cf3a3364a0.zip FreeBSD-src-21695ece5ead7b2fd8511ac5906366cf3a3364a0.tar.gz |
Fix mishandling of extraction return status in commit.
-rw-r--r-- | release/sysinstall/install.c | 2 | ||||
-rw-r--r-- | usr.sbin/sade/install.c | 2 | ||||
-rw-r--r-- | usr.sbin/sysinstall/install.c | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/release/sysinstall/install.c b/release/sysinstall/install.c index bf7e84a..4d726ac 100644 --- a/release/sysinstall/install.c +++ b/release/sysinstall/install.c @@ -710,6 +710,8 @@ installCommit(dialogMenuItem *self) i = distExtractAll(self); if (DITEM_STATUS(i) == DITEM_SUCCESS && (!need_bin || !(Dists & DIST_BIN))) i = installFixup(self); + else + i = DITEM_FAILURE; variable_set2(SYSTEM_STATE, DITEM_STATUS(i) == DITEM_FAILURE ? "error-install" : "full-install"); return i | DITEM_RECREATE; } diff --git a/usr.sbin/sade/install.c b/usr.sbin/sade/install.c index bf7e84a..4d726ac 100644 --- a/usr.sbin/sade/install.c +++ b/usr.sbin/sade/install.c @@ -710,6 +710,8 @@ installCommit(dialogMenuItem *self) i = distExtractAll(self); if (DITEM_STATUS(i) == DITEM_SUCCESS && (!need_bin || !(Dists & DIST_BIN))) i = installFixup(self); + else + i = DITEM_FAILURE; variable_set2(SYSTEM_STATE, DITEM_STATUS(i) == DITEM_FAILURE ? "error-install" : "full-install"); return i | DITEM_RECREATE; } diff --git a/usr.sbin/sysinstall/install.c b/usr.sbin/sysinstall/install.c index bf7e84a..4d726ac 100644 --- a/usr.sbin/sysinstall/install.c +++ b/usr.sbin/sysinstall/install.c @@ -710,6 +710,8 @@ installCommit(dialogMenuItem *self) i = distExtractAll(self); if (DITEM_STATUS(i) == DITEM_SUCCESS && (!need_bin || !(Dists & DIST_BIN))) i = installFixup(self); + else + i = DITEM_FAILURE; variable_set2(SYSTEM_STATE, DITEM_STATUS(i) == DITEM_FAILURE ? "error-install" : "full-install"); return i | DITEM_RECREATE; } |