delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/04/18/04:52:15

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
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 <cygwin AT cygwin DOT com>
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
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019