'touch' from setgid-perlscript
Hi,
little out of place here, though it's for a script used in a debian-package:
I have a perl-script which does a `/usr/bin/touch FILE` where file is to
be in a directory which is setgid news and is group-writable. The script
itself is setgid news too.
However, this script fails. The /usr/bin/touch runs from within a section
that is executed in a fork()-child. Actually all other commands I execute
(with backticks) there fail writing to that dir. I tried setting
$GID=$EGID in several places to see if this makes a difference, but not.
Any wizard out here that knows what to do?
Maarten
_______________________________________________________________________
| Maarten Boekhold, Faculty of Electrical Engineering TU Delft, NL |
| boekhold@cindy.et.tudelft.nl boekhold@gopher.library.tudelft.nl |
| Take life as a party! |
-----------------------------------------------------------------------
Reply to: