Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Thu, 18 Apr 2002 10:44:43 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: sshd/cron seteuid() problem in latest CVS Message-ID: <20020418104443.A24938@cygbert.vinschen.de> Mail-Followup-To: cygwin AT cygwin DOT com References: <20020412152132 DOT GC948 AT tishler DOT net> <20020415131809 DOT J29277 AT cygbert DOT vinschen DOT de> <20020417152553 DOT GA1344 AT tishler DOT net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020417152553.GA1344@tishler.net> User-Agent: Mutt/1.3.22.1i 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 AT cygwin DOT 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/