This is the mail archive of the cygwin-patches@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

mkpasswd and mkgroup


Corinna,

Following remarks made on the list this patch
- allows to specify several domains at once with -d
- only prints SYSTEM and specials when the -l switch is given
- prints all uids and gids as unsigned
- limits the uid values to < 1000 on Win9x (for lastlog)

mkpasswd had a pesky bug where memory was freed twice without 
netapibufferfree complaining, but subsequent net calls failed.

Pierre

2003-04-05  Pierre Humblet  <pierre dot humblet at ieee dot org>

	* mkpasswd.c (current_user): print uid and gid as unsigned.
	(enum_users): Ditto. Do not free servername.
	(usage): Update to allow several domains and improve -p.
	(main): On Win9x limit uids to 1000. Only print specials
	when -l is specified. Add a loop to allow several domains
	and free servername in the loop.
	* mkgroup.c (enum_groups): Do not free servername.
	(usage): Update to allow several domains. Change uid to gid.
	(main): Only print specials when -l is specified. Add a 
	loop to allow several domains and free servername in the loop.

Attachment: pwdgrp.diff
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]