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

Bug #1113840 reported by Tristan Schmelcher
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
samba (Ubuntu)
Confirmed
Low
Unassigned

Bug Description

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]

Revision history for this message
Tristan Schmelcher (tschmelcher) wrote :
Changed in samba (Ubuntu):
status: New → Confirmed
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.