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

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 arg