This is the mail archive of the cygwin-developers@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]

Re: uid > 64k


Corinna Vinschen wrote:
> 
> On Thu, Mar 06, 2003 at 09:47:41AM -0500, Pierre A. Humblet wrote:
> > Corinna,
> >
> > there was again a report of uid > 64k.
> >
> > Why don't we patch mkpasswd to keep uids below 64k until Cygwin
> > switches to uid32 ?
> 
> How do you fold the ids into 64K?  You never know if you're already
> overwriting another id.
 
Agreed. However most passwd files have a lot fewer entries than 64k.
Thus I was thinking that randomizing the entries above 64k into the
range 10000->64k (to avoid local and special users) should succeed
with high probability. At worst there might be aliasing and ls -l 
might show some incorrect names, in which case the file must be 
edited by hand.

Doing nothing is guaranteed to produce failures (e.g getpwuid( getuid()))
which will also force manual edits. 

pierre


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