Bug 1305302

Summary: Invalid missing-call-to-chdir-with-chroot error for hylafax+
Product: [Fedora] Fedora Reporter: Lee Howard <faxguy>
Component: rpmlintAssignee: Tom "spot" Callaway <tcallawa>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: kevin, tcallawa, tmz, twoerner, ville.skytta
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-02-07 19:10:19 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:
Embargoed:

Description Lee Howard 2016-02-06 21:23:32 UTC
In F24 (rawhide) rebuild attempts the error:

hylafax+.armv7hl: E: missing-call-to-chdir-with-chroot /usr/sbin/hfaxd

While there may be some convention to doing the chdir() before chroot() doing chdir("/") after chroot() is also valid.  HylaFAX does the latter...

------------------------------
bool isSetup = (chroot(".") >= 0 && chdir("/") >= 0);
------------------------------

The rpmlint check should not throw an error in this case.  Or am I wrong?

Comment 1 Ville Skyttä 2016-02-07 08:12:54 UTC
Which architecture you're running rpmlint on? At least when run on x86_64 against an armv7hl binary, objdump barfs under rpmlint's hood and causes the false positive. That case taken care of in:
https://github.com/rpm-software-management/rpmlint/commit/c5871542684bf1439d96f2430fe4f0010070e4db

Comment 2 Lee Howard 2016-02-07 19:10:19 UTC
Was running on x86_64.  So, I suppose this was already resolved.