bin/77001: sysinstall binary upgrade clobbers /etc/login.conf.db

dada at sbox.tugraz.at dada at sbox.tugraz.at
Wed Feb 2 03:10:25 PST 2005


>Number:         77001
>Category:       bin
>Synopsis:       sysinstall binary upgrade clobbers /etc/login.conf.db
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb 02 11:10:24 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Martin Kammerhofer
>Release:        FreeBSD 4.11-STABLE i386
>Organization:
Graz Uni
>Environment:
System: FreeBSD Martin.liebt.Susi 4.11-STABLE FreeBSD 4.11-STABLE #0: Wed Jan 26 18:54:35 CET 2005 toor at Martin.liebt.Susi:/mnt/redhat/FreeBSD-data/usr/obj/mnt/redhat/FreeBSD-data/usr/src4/sys/GEIDORF4 i386
>Description:
Going sysinstall's binary upgrade route from 4.10 to 4.11 I noticed
that while /etc/login.conf was preserved /etc/login.conf.db has been
overwritten.
>How-To-Repeat:
Do a binary system upgrade.
>Fix:
1.) Run
# cap_mkdb /etc/login.conf
after the binary upgrade.

2.) Fix sysinstall with the patch below.
Note: Patch is against RELENG_4 but can be equally well applied
against the repo copied sysinstall in
src/usr.sbin/sysinstall/installUpgrade.c too.

<------------------------------cut here------------------------------
--- /usr/src/release/sysinstall/installUpgrade.c~	Mon Jun 10 06:28:53 2002
+++ /usr/src/release/sysinstall/installUpgrade.c	Wed Feb  2 09:54:01 2005
@@ -89,6 +89,7 @@
    { JUST_COPY,		"localtime",		TRUE, NULL },
    { JUST_COPY,		"login.access",		TRUE, NULL },
    { JUST_COPY,		"login.conf",		TRUE, NULL },
+   { JUST_COPY,		"login.conf.db",	TRUE, NULL },
    { JUST_COPY,		"mail",			TRUE, NULL },
    { JUST_COPY,		"mail.rc",		TRUE, NULL },
    { JUST_COPY,		"make.conf",		TRUE, NULL },

--=_524jtnodpi4g--

>Release-Note:
>Audit-Trail:
>Unformatted:
 This message is in MIME format.
 
 --=_524jtnodpi4g
 Content-Type: text/plain;
 	charset=ISO-8859-1
 Content-Disposition: inline
 Content-Transfer-Encoding: 7bit
 
 
 --=_524jtnodpi4g
 Content-Type: text/plain;
 	charset=UTF-8;
 	name="PR"
 Content-Disposition: inline;
 	filename="PR"
 Content-Transfer-Encoding: 7bit
 


More information about the freebsd-bugs mailing list