Problem with setuid/execv on Cygwin/Windows 7

2012-11-09 Thread Laurent Cocault
Hi Cygwin community, I am currently facing a problem with the combination of setuid/execv on a Cygwin/Windows 7. Here is the description of my configuration : * Cygwin 1.7.17 * Windows 7 Pro (64 bits) - Service Pack 1 * Compilation (no option) and execution of a sample program using an admin

Re: Problem with setuid/execv on Cygwin/Windows 7

2012-11-09 Thread Corinna Vinschen
On Nov 9 08:59, Laurent Cocault wrote: Hi Cygwin community, I am currently facing a problem with the combination of setuid/execv on a Cygwin/Windows 7. [...] char* args[1]; args[0] = NULL; status = execv(/bin/bash, args); This is wrong. You should at least set args[0]

Re: Problem with setuid/execv on Cygwin/Windows 7

2012-11-09 Thread Corinna Vinschen
On Nov 9 10:08, Corinna Vinschen wrote: On Nov 9 08:59, Laurent Cocault wrote: Hi Cygwin community, I am currently facing a problem with the combination of setuid/execv on a Cygwin/Windows 7. [...] char* args[1]; args[0] = NULL; status = execv(/bin/bash, args);