X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Message-ID: <48A8D3D5.4000701@cwilson.fastmail.fm>
Date: Sun, 17 Aug 2008 21:43:49 -0400
From: Charles Wilson <cygwin@cwilson.fastmail.fm>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.16) Gecko/20080708 Thunderbird/2.0.0.16 Mnenhy/0.7.5.666
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: Bug in mkpasswd (1.7)
References: <48A766FF.4040906@cwilson.fastmail.fm> <48A81B6D.40201@elite-systems.org> <20080817154748.GC5950@ednor.casa.cgf.cx> <20080817171227.GA3518@ednor.casa.cgf.cx>
In-Reply-To: <20080817171227.GA3518@ednor.casa.cgf.cx>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Christopher Faylor wrote:
> On Sun, Aug 17, 2008 at 11:47:48AM -0400, Christopher Faylor wrote:
>> On Sun, Aug 17, 2008 at 08:37:01AM -0400, Robert Pendell wrote:
>>> Charles Wilson wrote:
>>>> Always prints the standard well-known users, even when just requesting a
>>>> single user's entry:
>>>>
>>>> $ uname -a
>>>> CYGWIN_NT-5.1 VMWARE-XP 1.7.0(0.186/5/3) 2008-08-15 15:17 i686 Cygwin
>>>>
>>>> $ mkpasswd -l -u cwilson
>>>> SYSTEM:*:18:544:,S-1-5-18::
>>>> LocalService:*:19:544:U-NT AUTHORITY\LocalService,S-1-5-19::
>>>> NetworkService:*:20:544:U-NT AUTHORITY\NetworkService,S-1-5-20::
>>>> Administrators:*:544:544:,S-1-5-32-544::
>>>> cwilson:unused:1036:513:cwilson,U-VMWARE-XP\cwilson,S-1-5-21-3395897280-1512205858-4128055458-1036:/home/cwilson:/bin/bash
>>> `mkpasswd` starts listing then segfaults.  Backtrace and gdb debug
>>> output attached from this as well as the stackdump file
>> I'll see if I can figure out why this is segfaulting.  I can duplicate
>> this too.
> 
> There is a new snapshot available which, I hope, fixes both problems.

Confirmed fixed.

$ mkpasswd -l -u cwilson
cwilson:unused:1036:513:cwilson,U-VMWARE-XP\cwilson,S-1-5-21-3395897280-1512205858-4128055458-1036:/home/cwilson:/bin/bash

$ mkpasswd
<... output, but no segfault ...>

> mkgroup also had similar problems which I've theoretically also fixed.

Emphasis on theoretical. :-(

While this
$ mkgroup
< ... output ...>

doesn't segfault, the following:

$ mkgroup -l -g Users
mkgroup (519): [2220] The group name could not be found.
Users:S-1-5-32-545:545:

is very odd. It *did* find the Users group, and printed the output --
but also printed an error message.

$ mkgroup -l -g nonexist
mkgroup (391): [0] The operation completed successfully.
 (nonexist)
mkgroup (519): [2220] The group name could not be found.

NOTE: this is my debug build of current CVS.

--
Chuck



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

