X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Mon, 13 Oct 2008 18:33:27 +0200
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: "mkpasswd -c" from a cmd shell outputs wrong gid (cygwin-1.7)
Message-ID: <20081013163327.GP9289@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <0MKtd6-1KofTb0DNC-00006W@mx.kundenserver.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <0MKtd6-1KofTb0DNC-00006W@mx.kundenserver.de>
User-Agent: Mutt/1.5.16 (2007-06-09)
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@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

On Oct 11 07:29, Herb Maeder wrote:
> The "mkpasswd -c" command produces the wrong gid for the current user
> under the following set of circumstances:
> 
>    * it is invoked from a cmd.exe shell
>    * there are no running cygwin bash shells
>    * output is redirected to cygwin's /etc/passwd file (with the permissions
>      that setup.exe sets on it)
> 
> For example, the following should show the problem (from cmd.exe shell,
> directly after completing an initial cygwin install with setup-1.7.exe):
> 
>    cd c:\cygwin-1.7\bin
>    .\mkpasswd -l -c > ..\etc\passwd
> 
> For my case I see that it outputs "10544" as the gid, instead of the
> expected "10513" (Domain Users).

I can reproduce this.  Quite puzzeling.  I'll have a look.  It's
a bug in Cygwin, apparently, not in mkpasswd.


Thanks for the report,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
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/

