in reply to setuid system() calls on Solaris 11
withif (system ( "/usr/bin/cp -f $version/$obj $dest 2> /dev/null")) {
would work? And maybe this would be more of a drop in replacement, i.e. keep /bin/sh in the call to avoid behavior diffs from changing to a no-shell execution?if (system ( '/usr/bin/cp', '-f', "$version/$obj", $dest '2>', '/dev/null')) {
if (system ( /bin/sh', '-p', '-c', '/usr/bin/cp', '-f', "$version/$obj", $dest '2>', '/dev/null')) {
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: setuid system() calls on Solaris 11
by hippo (Archbishop) on Jul 25, 2018 at 15:29 UTC | |
|
Re^2: setuid system() calls on Solaris 11
by haukex (Archbishop) on Jul 25, 2018 at 18:26 UTC | |
by baataboom (Initiate) on Jul 25, 2018 at 22:11 UTC | |
by haukex (Archbishop) on Jul 26, 2018 at 08:36 UTC |