Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Aug 1998 11:30:01 -0700 (PDT)
From:      Stefan Eggers <seggers@semyam.dinoco.de>
To:        freebsd-bugs@FreeBSD.ORG
Subject:   Re: conf/7491: /etc/login.conf not preserved during update 
Message-ID:  <199808111830.LAA21728@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR conf/7491; it has been noted by GNATS.

From: Stefan Eggers <seggers@semyam.dinoco.de>
To: pink@eniac.fsz.bme.hu
Cc: FreeBSD-gnats-submit@FreeBSD.ORG, seggers@semyam.dinoco.de
Subject: Re: conf/7491: /etc/login.conf not preserved during update 
Date: Tue, 11 Aug 1998 20:15:23 +0200

 > 	During update to 2.2.7-RELEASE the file /etc/login.conf is overwritten 
 >         with the new version.
 
 > >Fix:
 > 	
 > 	Copy the saved login.conf (from /usr/tmp/etc) to /etc
 
 Fix sysinstall instead to preserve login.conf, too.  I think this
 (untested as I have no play machine suitable for this and I update
 with "make world") will do it:
 
 Index: installUpgrade.c
 ===================================================================
 RCS file: /usr2/FreeBSD/CVSROOT/src/release/sysinstall/installUpgrade.c,v
 retrieving revision 1.58
 diff -u -r1.58 installUpgrade.c
 --- installUpgrade.c	1998/05/24 02:49:54	1.58
 +++ installUpgrade.c	1998/08/11 17:53:24
 @@ -83,6 +83,7 @@
     { JUST_COPY,		"kerberosIV",		TRUE, NULL },
     { JUST_COPY,		"localtime",		TRUE, NULL },
     { JUST_COPY,		"login.access",		TRUE, NULL },
 +   { JUST_COPY,		"login.conf",		TRUE, NULL },
     { JUST_COPY,		"mail.rc",		TRUE, NULL },
     { JUST_COPY,		"make.conf",		TRUE, NULL },
     { JUST_COPY,		"manpath.config",	TRUE, NULL },
 
 I think such a fix should go in instead of just saying that "one
 should save ones config files before update" as my gnats database says
 is the reason given for closing this PR.  Of course making a backup of
 them is still a good idea.
 
 This saving of config files is what sysinstall offers to do on an
 update installation after all.  It just fails to do it propperly for
 the file in question it seems.
 
 Stefan.
 -- 
 Stefan Eggers                 Lu4 yao2 zhi1 ma3 li4,
 Max-Slevogt-Str. 1            ri4 jiu3 jian4 ren2 xin1.
 51109 Koeln
 Federal Republic of Germany

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199808111830.LAA21728>