This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: sshd/cron seteuid() problem in latest CVS


On Wed, Apr 17, 2002 at 11:25:53AM -0400, Jason Tishler wrote:
> After some more digging, I believe that I have found the root cause to
> the above problem.  The new way, via NetGetDCName(), causes two extra
> backslashes to be prepended to the PDC name as demonstrated by the
> attached test program:
> 
>     NetServerEnum PDC = PALO-ALTO-PDC
>     NetGetDCName PDC = \\PALO-ALTO-PDC
> 
> This causes the NetUserGetGroups() call in get_user_groups() to SEGV
> (at least under gdb) and hence, ultimately create_token() fails.

Ok, that explains it.

> My WAG regarding domain vs. workgroup was correct because the workgroup
> path through this code does not cause extra backslashes to be prepended.
> 
> I will submit a patch to cygwin-patches to correct this problem.

Thanks,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]