Searched hist:221012 (Results 1 - 1 of 1) sorted by relevance

/freebsd-9.3-release/bin/sh/
H A Doptions.cdiff 221012 Mon Apr 25 08:25:24 MDT 2011 jilles sh: Check setuid()/setgid() return values.

If the -p option is turned off, privileges from a setuid or setgid binary
are dropped. Make sure to check if this succeeds. If it fails, this is an
error which will cause the shell to abort except in interactive mode or if
'command' was used to make 'set' or an outer 'eval' or '.' non-special.

Note that taking advantage of this feature and writing setuid shell scripts
seems unwise.

MFC after: 1 week

Completed in 52 milliseconds