MFC r1.87:

Fix binary upgrades by accounting for the schg flag on /var/empty.

PR:		96711, 96780
Submitted by:	Nobuyuki Koganemaru, Martin Jackson
Approved by:	re (scottl)
This commit is contained in:
ceri 2006-05-05 18:52:21 +00:00
parent fd704b212b
commit bd6ba582ca

View File

@ -290,7 +290,7 @@ installUpgrade(dialogMenuItem *self)
}
msgNotify("chflags'ing old binaries - please wait.");
(void)vsystem("chflags -R noschg /bin /sbin /usr/sbin /usr/bin /usr/lib /usr/libexec /kernel*");
(void)vsystem("chflags -R noschg /bin /sbin /usr/sbin /usr/bin /usr/lib /usr/libexec /var/empty /kernel*");
if (file_readable("/kernel")) {
msgNotify("Moving old kernel to /kernel.prev");