Bug 844 - [PATCH] O_DIRECTORY is not available on Solaris
[PATCH] O_DIRECTORY is not available on Solaris
Status: RESOLVED FIXED
Product: Sudo
Classification: Unclassified
Component: Sudo
1.8.23
PC Solaris 2.x
: low normal
Assigned To: Todd C. Miller
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2018-08-18 06:06 MDT by Andrew Stormont
Modified: 2018-08-18 13:27 MDT (History)
0 users

See Also:


Attachments
Fix build on Solaris (572 bytes, application/octet-stream)
2018-08-18 06:06 MDT, Andrew Stormont
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Stormont 2018-08-18 06:06:25 MDT
Created attachment 513 [details]
Fix build on Solaris

The code assumes that if O_PATH is defined O_DIRECTORY will also be defined.  This is not true for Solaris.
Comment 1 Todd C. Miller 2018-08-18 06:54:19 MDT
What version of Solaris is this?  I build sudo on Solaris 9, 10 and 11 without problems.
Comment 2 Andrew Stormont 2018-08-18 07:20:19 MDT
This is on illumos, a fork of OpenSolaris.
Comment 3 Todd C. Miller 2018-08-18 08:09:36 MDT
Fixed by https://www.sudo.ws/repos/sudo/rev/fb75d75c7249 which will be included in sudo 1.8.24.
Comment 4 Todd C. Miller 2018-08-18 13:27:58 MDT
Fixed in sudo 1.8.24, available now.