[MacPorts] #54958: sudo: no sticky bit on high sierra
MacPorts
noreply at macports.org
Sat Sep 30 22:55:51 UTC 2017
#54958: sudo: no sticky bit on high sierra
------------------------+-------------------------
Reporter: danchr | Owner: Schamschula
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.4.99
Keywords: highsierra | Port: sudo
------------------------+-------------------------
I just upgraded my Mac to High Sierra, and during the rebuild afterwards
sudo was built to a non-functioning state. Specifically, everthing built,
but {{{/opt/local/bin/sudo}}} had no ''setuid'' bit, leaving functionality
somewhat reduced.
I run MacPorts from the master branch, so that might also be the cause.
Anyway, the fix is rather trivial:
{{{#!diff
diff --git a/sysutils/sudo/Portfile b/sysutils/sudo/Portfile
--- a/sysutils/sudo/Portfile
+++ b/sysutils/sudo/Portfile
@@ -47,6 +47,7 @@ pre-destroot {
}
post-destroot {
+ file attributes ${destroot}${prefix}/bin/sudo -permissions +s
file delete ${destroot}${prefix}/etc/sudoers
xinstall -d -m 0755 ${destroot}${prefix}/var/run/sudo
}
}}}
--
Ticket URL: <https://trac.macports.org/ticket/54958>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list