Bug 8465 - Enable dirsort plugin on systems without dirfd()
Summary: Enable dirsort plugin on systems without dirfd()
Status: RESOLVED FIXED
Alias: None
Product: Samba 3.6
Classification: Unclassified
Component: VFS Modules (show other bugs)
Version: 3.6.0
Hardware: All Solaris
: P5 normal
Target Milestone: ---
Assignee: Samba Bugzilla Account
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-17 05:20 UTC by (account disabled)
Modified: 2016-09-14 16:45 UTC (History)
0 users

See Also:


Attachments
Add alternatives to dirfd() for systems that don't have it (4.39 KB, patch)
2011-09-17 05:20 UTC, (account disabled)
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description (account disabled) 2011-09-17 05:20:42 UTC
Created attachment 6903 [details]
Add alternatives to dirfd() for systems that don't have it

Some systems, such as Solaris 10, don't have dirfd(), but do have
members in the DIR struct that can be used instead (specifically,
the d_fd and dd_fd members). The attached patch detects if any of
those are present and falls back using one of them if dirfd() is
not.
Comment 1 Björn Jacke 2016-09-14 16:45:05 UTC
the need for dirfd was removed already quite a while ago.