X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:to:from:subject:date:message-id:references
	:mime-version:content-type:content-transfer-encoding; q=dns; s=
	default; b=QdW+fSe66h92T0AiYZisWM9ugBNzESVJp2UdyJ9AhUJ+vaQJTap5/
	aIoGSWJKKWVyTFNuagk8gY6sS4KkBdmKXX3MhdKsJW4UmbPUp9QI2lmqrQxhU9gB
	6aapgXaBHl3aN4iReJarK+RBnVFySOjakxtneKagl4shUcRcMf/hjs=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:to:from:subject:date:message-id:references
	:mime-version:content-type:content-transfer-encoding; s=default;
	 bh=JVoBEY0LKqnM0LMD+2c4tawBBBs=; b=vXMfINjgeSuZKRU13rWe3Go6RfhB
	d59pyptBt0Of9uE9TjBS8IWoBl3pHEjv+0lTYjsiNJyBWbgq+sdFRwRH+h0GfUMl
	PvcN7FEErhSa8YHRTZ5B9RYp0+/MSvzKPlOKL9yJUeDp3SvwJ2RTU48IXzu+tjNO
	nj1cx81BkBQAVg4=
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2
X-HELO: plane.gmane.org
To: cygwin@cygwin.com
From: Kurt Franke <Kurt-Franke@web.de>
Subject: Re: Testers needed: New passwd/group handling in Cygwin
Date: Fri, 14 Feb 2014 12:55:58 +0000 (UTC)
Lines: 34
Message-ID: <loom.20140214T132503-178@post.gmane.org>
References: <52FD1EDB.8060708@googlemail.com> <52FD3D9C.6020205@tiscali.co.uk> <52FDE9C0.7070002@gmail.com> <20140214101001.GW2246@calimero.vinschen.de> <20140214105038.GA2246@calimero.vinschen.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes

Corinna Vinschen <corinna-cygwin <at> cygwin.com> writes:

> > Indeed.  After the discussion yesterday I already realized that we will
> > need some commandline tool to request passwd and group entries.
> > 
> > There is a function called getpw on Linux which allows to fetch a passwd
> > entry in the form it has in /etc/passwd:
> > 
> >   http://linux.die.net/man/3/getpw
> 
> Gosh, please ignore this function.  It's old and dangerous.  Treat this
> mail as if I never mentioned this function, ok?
> 
> Corinna
> 

Hi Corinna,

I think the function family

getpwent()
getgrent()
...

would be good for this if you add checking in SAM for asked information.

And of course to small executables utilizing it for use in shell scripts


Regards

kf




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

