Bug 15412

Summary: Overwriting of /var/log/lastlog while upgrade
Product: [Retired] Red Hat Linux Reporter: Enrico Scholz <rh-bugzilla>
Component: setupAssignee: Bill Nottingham <notting>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0CC: rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-08-04 16:42:58 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Enrico Scholz 2000-08-04 16:42:57 UTC
The logfile /var/log/lastlog will be replaced by an empty file while
package-upgrade. It's better to consider it as %config(noreplace) in the
spec-file:

-%verify(not md5 size mtime) /var/log/lastlog
+ %verify(not md5 size mtime) %config(noreplace) /var/log/lastlog


Example:
$ lastlog
[... a lot of names and dates ...]
$ rpm -U  /usr/src/redhat/RPMS/noarch/setup-2.3.2-1.noarch.rpm
$ lastlog
$

Comment 1 Bill Nottingham 2000-08-07 04:12:52 UTC
Fixed in setup-2.3.4-1; thanks for the bug report.