Subject: port-i386/1798: upgrade doesn't put back /.profile
To: None <gnats-bugs@gnats.netbsd.org>
From: John Kohl <jtk@kolvir.arlington.ma.us>
List: netbsd-bugs
Date: 11/29/1995 21:42:40
>Number: 1798
>Category: port-i386
>Synopsis: upgrade doesn't put back /.profile
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: gnats-admin (GNATS administrator)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Nov 29 22:35:03 1995
>Last-Modified:
>Originator: John Kohl
>Organization:
NetBSD Kernel Hackers `R` Us
>Release: 1.1
>Environment:
System: NetBSD pattern 1.1 NetBSD 1.1 (PATTERN) #0: Fri Nov 24 11:01:09 EST 1995 jtk@pattern:/u1/NetBSD-current/src/sys/arch/i386/compile/PATTERN i386
>Description:
The upgrade procedure does not put /.profile back in place when
it is done.
>How-To-Repeat:
Run the upgrade, boot a new kernel single user, and wonder why
you get the upgrade stuff rather than your own system .profile.
>Fix:
*** dot.upgrutils 1995/11/30 02:40:19 1.1
--- distrib/i386/floppies/upgr/dot.upgrutils 1995/11/30 02:41:12
***************
*** 45,50 ****
--- 45,51 ----
mv $upgrade_dir/etc/rc.bak $upgrade_dir/etc/rc
chroot $upgrade_dir /usr/sbin/pwd_mkdb -p /etc/master.passwd
chroot $upgrade_dir /bin/rm /etc/sendmail.fc > /dev/null 2>&1
+ mv $upgrade_dir/.profile.bak $upgrade_dir/.profile
sync
echo "Done."
>Audit-Trail:
>Unformatted: