Bug 4355
Summary: | rpm -U samba* removes existing /etc/smb.conf | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | stanonik |
Component: | rpm | Assignee: | Jeff Johnson <jbj> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 6.0 | CC: | jbj, ojo |
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: | 1999-08-16 22:49:47 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
stanonik
1999-08-04 18:43:12 UTC
Yes, it is. It's marked as %config(noreplace) in both packages, so it shouldn't happen. Here's a simple spec file which demonstrates the problem. Removing the noreplace prevents the problem. rpm -bb arf.spec echo hello > /tmp/hello rpm -U arf* The original /tmp/hello was lost Summary: arf summary Name: arf Version: 1.0 Release: 0 Copyright: GPL Group: Games Source: ftp://cogsci.ucsd.edu/arf-%{version}.tar.gz BuildRoot: /var/tmp/arf %description testing rpm bug echo hello > /tmp/hello; rpm -U arf* original /tmp/hello is gone now try echo hello > /tmp/hello; rpm -U arf: rpm -U arf-client original /tmp/hello was saved finally try edit arf.spec and remove (noreplace) from both %files echo hello > /tmp/hello; rpm -U arf* original /tmp/hello was saved %package client Summary: arf client summarg Group: Games %description client arf client description %install rm -rf $RPM_BUILD_ROOT mkdir $RPM_BUILD_ROOT mkdir $RPM_BUILD_ROOT/tmp echo goodbye > $RPM_BUILD_ROOT/tmp/hello %files %config(noreplace) /tmp/hello #%config /tmp/hello %files client %config(noreplace) /tmp/hello #%config /tmp/hello *** Bug 4548 has been marked as a duplicate of this bug. *** I did the following to upgrade my old samba installation (after downloading): [root@triton /tmp]# rpm --test -Uhv samba-* [root@triton /tmp]# /etc/rc.d/init.d/smb stop Shutting down SMB services: [ OK ] Shutting down NMB services: [ OK ] [root@triton /tmp]# rpm -Uhv samba-* warning: /etc/smb.conf created as /etc/smb.conf.rpmnew samba ################################################## samba-client ################################################## I then discovered that my old smb.conf had gone: [root@triton /tmp]# diff /etc/smb.conf /etc/smb.conf.rpmnew [root@triton /tmp]# ll /etc/smb* -rw-r--r-- 1 root root 10731 Jul 22 17:40 /etc/smb.conf -rw-r--r-- 1 root root 10731 Jul 22 17:40 /etc/smb.conf.rpmnew -rw-r--r-- 1 root root 97 Jul 22 17:40 /etc/smbusers Oliver Fixed in rpm-3.0.3-0.15. Thanks *very* much for the test spec file that reproduced this problem! |