Bug 844

Summary: [PATCH] O_DIRECTORY is not available on Solaris
Product: Sudo Reporter: Andrew Stormont <andyjstormont>
Component: SudoAssignee: Todd C. Miller <Todd.Miller>
Status: RESOLVED FIXED    
Severity: normal    
Priority: low    
Version: 1.8.23   
Hardware: PC   
OS: Solaris 2.x   
Attachments: Fix build on Solaris

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.