Bug 1306542

Summary: samba-common postun scriptlet failure
Product: [Fedora] Fedora Reporter: Ralf Corsepius <rc040203>
Component: sambaAssignee: Andreas Schneider <asn>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: abokovoy, asn, gdeschner, jfrieben, jlayton, jrivera, lmohanty, madam, sbose, ssorce, vedran
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: samba-4.4.0-0.4.rc2.fc24 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-02-15 13:10:00 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Ralf Corsepius 2016-02-11 09:04:57 UTC
Description of problem:

On a rawhide system, I encountered this during a dnf update:

# dnf update
...
 Cleanup     : samba-common-2:4.4.0-0.0.rc1.fc24.noarch                                                                       64/89 
/sbin/ldconfig: relative path `1' used to build cache
warning: %postun(samba-common-2:4.4.0-0.0.rc1.fc24.noarch) scriptlet failed, exit status 1
Non-fatal POSTUN scriptlet failure in rpm package samba-common
Non-fatal POSTUN scriptlet failure in rpm package samba-common


Version-Release number of selected component (if applicable):
samba-common-2:4.4.0-0.0.rc1.fc24.noarch

How reproducible:
Always

Steps to Reproduce:
This issue is reproducible in mock:
1. mock -r fedora-rawhide-x86_64 --install dnf samba-common
2. mock -r fedora-rawhide-x86_64 --shell
3. dnf reinstall samba-common

Actual results:
cf. above

Expected results:
Function, no warning.

Additional info:

Seems to me as if the %postuninstall scriptlet is infected with shell code:

# rpm -q --scripts samba-common
...
postuninstall scriptlet (using /sbin/ldconfig):


### KRB5-PRINTING

I.e. rpm tries to run a script which is containing a /bin/sh-style comment
(### KRB5...) using /sbin/ldconfig as shell-interpreter.

Comment 1 Guenther Deschner 2016-02-11 09:52:38 UTC
Andreas, could you please have a look?

Comment 2 Alexander Bokovoy 2016-02-12 14:44:27 UTC
*** Bug 1307040 has been marked as a duplicate of this bug. ***

Comment 3 Alexander Bokovoy 2016-02-15 12:49:46 UTC
*** Bug 1308485 has been marked as a duplicate of this bug. ***

Comment 4 Andreas Schneider 2016-02-15 13:10:00 UTC
Fixed with samba-4.4.0-0.4.rc2.fc24