[PATCH] xgetgrnam + addgroup race patch
Tito
farmatito at tiscali.it
Wed Dec 3 22:59:18 UTC 2008
Hi Denys,
this patch adds xgetgrnam to bb_pwd.c
and fixes a race you noticed in addgroup.c
Bloat-o-meter says:
function old new delta
xgetgrnam - 27 +27
make_device 1238 1244 +6
passwd_main 1019 1023 +4
udhcp_send_kernel_packet 250 253 +3
xstrtoull_range_sfx 295 296 +1
read_base64 251 246 -5
decode_base64 271 266 -5
addgroup_main 347 338 -9
xgroup2gid 30 9 -21
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 4/4 up/down: 41/-40) Total: 1 bytes
The patch is tested. Please apply if you like it.
Ciao,
Tito
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xgetgrnam.patch
Type: text/x-diff
Size: 1702 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20081203/78beec73/attachment.bin
More information about the busybox
mailing list