system ( "/usr/bin/cp -f $version/$obj $dest 2> /dev/null")
The 2> /dev/null is a shell construct for redirecting FD 2 so you would need a shell to handle that. However, why would you want to redirect FD 2 to /dev/null anyway? Surely you want to log the details of any failure?
Furthermore, why fork out to cp when we have File::Copy in core?
In reply to Re^2: setuid system() calls on Solaris 11
by hippo
in thread setuid system() calls on Solaris 11
by baataboom
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |