[BusyBox] Patch for id with invalid username
Ken Chalmers
chalmers at norscan.com
Thu Jul 27 21:43:44 UTC 2000
Here's a patch for id (requires patching id.c & utility.c) that allows
it to detect and print an error if you give an invalid username. Note
that because of the way the information is passed, if you ever have a
user with a gid of (2^32)-1, they'll be told they don't exist.
Unlikely that one will ever have 4 billion groups on an embedded
system, though :)
I don't even know if this kind of error checking is something people
consider important, but it only adds a few bytes so I just figured I'd
put it up for interest's sake.
The patches are against the current (as of Jul 27 2000) CVS source.
-Ken
--
Do not meddle in the affairs of dragons, cuz, like,
you are crunchy and taste good with ketchup.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: id.c.patch
Url: http://lists.busybox.net/pipermail/busybox/attachments/20000727/43be9710/attachment.diff
-------------- next part --------------
A non-text attachment was scrubbed...
Name: utility.c.patch
Type: text/x-c
Size: 336 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20000727/43be9710/attachment.bin
More information about the busybox
mailing list