Public bug reported:

On my system, the conffile /etc/network/if-up.d/samba is missing. This
is because the samba package's maintainer scripts run rm_conffile for
it:

$ grep -F 'dpkg-maintscript-helper rm_conffile' /var/lib/dpkg/info/samba.*
/var/lib/dpkg/info/samba.postinst:dpkg-maintscript-helper rm_conffile 
/etc/network/if-up.d/samba 2:3.6.5-6~ samba -- "$@"
/var/lib/dpkg/info/samba.postrm:dpkg-maintscript-helper rm_conffile 
/etc/network/if-up.d/samba 2:3.6.5-6~ samba -- "$@"
/var/lib/dpkg/info/samba.preinst:dpkg-maintscript-helper rm_conffile 
/etc/network/if-up.d/samba 2:3.6.5-6~ samba -- "$@"
/var/lib/dpkg/info/samba.prerm:dpkg-maintscript-helper rm_conffile 
/etc/network/if-up.d/samba 2:3.6.5-6~ samba -- "$@"

But this conffile is not obsolete:

$ grep -F /etc/network/if-up.d/samba /var/lib/dpkg/status
 /etc/network/if-up.d/samba 2c617f0d1baebc4ba4177087a7eefc57

Indeed, looking inside the deb file, /etc/network/if-up.d/samba is still
there.

Actual behaviour:

samba runs rm_conffile for non-obsolete conffile /etc/network/if-
up.d/samba, so it is deleted on upgrade if the previously-installed
version precedes 2:3.6.5-6.

Expected behaviour:

Maintainer scripts should not delete non-obsolete conffiles.

ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: samba 2:3.6.6-3ubuntu5
ProcVersionSignature: Ubuntu 3.5.0-22.34-generic 3.5.7.2
Uname: Linux 3.5.0-22-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.6.1-0ubuntu10
Architecture: amd64
Date: Sat Feb  2 14:50:44 2013
MarkForUpload: True
OtherFailedConnect: Yes
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SambaServerRegression: Yes
SmbConfIncluded: No
SourcePackage: samba
UpgradeStatus: Upgraded to quantal on 2012-10-28 (97 days ago)
modified.conffile..etc.network.if.up.d.samba: [deleted]

** Affects: samba (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug quantal

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/1113840

Title:
  Non-obsolete conffile /etc/network/if-up.d/samba missing due to wrong
  rm_conffile calls in samba package

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1113840/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to