EvanK has asked for the wisdom of the Perl Monks concerning the following question:
that command basically sets some environment vars (VAR, in the example) and then runs an executable (dbsearch, a home-made C program for a proprietary database)umask(0002); # ...lots of irrelevant code... $val = `env VAR="blah" dbsearch`;
__________
Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life.
- Terry Pratchett
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: setuid - insecure dependancy with backticked cmd?
by thor (Priest) on Apr 22, 2006 at 20:08 UTC | |
Re: setuid - insecure dependancy with backticked cmd?
by derby (Abbot) on Apr 22, 2006 at 20:03 UTC | |
by EvanK (Chaplain) on Apr 22, 2006 at 20:14 UTC | |
by derby (Abbot) on Apr 22, 2006 at 20:32 UTC | |
by EvanK (Chaplain) on Apr 22, 2006 at 20:35 UTC |