in reply to setuid system() calls on Solaris 11
system() only invokes the shell if it has a single arg containing metachars (so it's relying on the shell to parse the command line). If you do that processing yourself, perl will execute the command directly. For example, change this first line to the second line:
system "foo -x 'a b' -y bar"; system "foo", "-x", "a b", "-y", "bar";
Dave.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: setuid system() calls on Solaris 11
by afoken (Chancellor) on Jul 25, 2018 at 16:27 UTC |
In Section
Seekers of Perl Wisdom