Bug 1305302 - Invalid missing-call-to-chdir-with-chroot error for hylafax+
Invalid missing-call-to-chdir-with-chroot error for hylafax+
Status: CLOSED UPSTREAM
Product: Fedora
Classification: Fedora
Component: rpmlint (Show other bugs)
rawhide
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Tom "spot" Callaway
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2016-02-06 16:23 EST by Lee Howard
Modified: 2016-02-07 14:10 EST (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-02-07 14:10:19 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Lee Howard 2016-02-06 16:23:32 EST
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 03:12:54 EST
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 14:10:19 EST
Was running on x86_64.  So, I suppose this was already resolved.

Note You need to log in before you can comment on or make changes to this bug.