Re: Setting effective UID for a shell script
> correct, the call should be:
> execv( argv[1], argv[2] );
> For the fanatically correct, this might be better:
> execv( argv[1], argv + sizeof( argv[1] ) );
Could you explain this? Why would this line be *more* correct than the precedent?
Moreover, argv + sizeof (argv[1]) is equal to argv[4] (as sizeof (char*) = 4) ...
Perceval.
--
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: