[Bug 4496] passwd applet ruins UID field in /etc/passwd

bugzilla at busybox.net bugzilla at busybox.net
Mon Nov 21 14:23:46 UTC 2011


https://bugs.busybox.net/show_bug.cgi?id=4496

--- Comment #3 from Jelle Martijn Kok <jmkok at youcom.nl> 2011-11-21 14:23:46 UTC ---
Aha... now it works correctly (but Busybox is twice the size...)

On my development machine:
$ make clean
$ export CONFIG_DEBUG=y
$ export CONFIG_DEBUG_PESSIMIZE=y 
$ make V=1
(The lines now say "-O0" instead of "-Os")
$ make install CONFIG_PREFIX=$ROOTFS
(To get it on the arm9)

Busyboc has grown from 699664 bytes to 1166624 bytes.

~# cat /etc/passwd | grep -E ^root
root:x:0:0:root:/root:/bin/sh
~# passwd -d root
Password for root changed by root
~# cat /etc/passwd | grep -E ^root
root:x:0:0:root:/root:/bin/sh

Other tests correctly changes the password and shadow file.

So it seems to be an optimizer issued...

I'll now built the "libbb/update_passwd.s" file and attach it to the next
message as suggested by Denys.

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the busybox-cvs mailing list