Bug 8465 - Enable dirsort plugin on systems without dirfd()
Enable dirsort plugin on systems without dirfd()
Status: RESOLVED FIXED
Product: Samba 3.6
Classification: Unclassified
Component: VFS Modules
3.6.0
All Solaris
: P5 normal
: ---
Assigned To: Samba Bugzilla Account
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
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.