[PATCH] adduser is broken in 1.6.x
Natanael Copa
natanael.copa at gmail.com
Mon Jul 9 05:46:52 PDT 2007
Hi,
adduser fails to create the user when ENABLE_FEATURE_CLEAN_UP is
disabled.
The reason is that adduser will exec passwd without first flushing the
previously written /etc/passwd (and /etc/shadow). passwd will fail
because the user does not exist until files are flushed. But the flush
never comes because the buffered file handles are lost in the exec
operation.
Attatched patch fixes this.
Natanael Copa
-------------- next part --------------
A non-text attachment was scrubbed...
Name: busybox-1.6.1-adduser.patch
Type: text/x-patch
Size: 502 bytes
Desc: not available
Url : http://busybox.net/lists/busybox/attachments/20070709/4ab00b9d/attachment.bin
More information about the busybox
mailing list