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

bugzilla at busybox.net bugzilla at busybox.net
Tue Dec 20 18:18:37 UTC 2011


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

--- Comment #16 from Jelle Martijn Kok <jmkok at youcom.nl> 2011-12-20 18:18:37 UTC ---
I isolated the bug, and it is indeed completely outside of busybox.
There seems to be an issue with the cross compiling setup gcc/libc I am using.
It is not reproducable on an i386/x64 system, but only on the ARMv5 system we
have here. See the attached file strstr.c for information.

It only occurs under very specific conditions (see the file):
- it must be compiled using the -Os option
- the 2nd searched text must end in the first character you are looking for
- also the main file must be built up like the example
- change anything and the bug disappears...
- a gdb trace shows that the second call to strstr is made with the correct
parameters, but returns the wrong result...

I agree with Denys that the patch is indeed not the solution for the problem.

Looking at the bug page for libc, it does not accept bug reports from libraries
built by external parties, and as I use the libraries from CodeSourcery they
won't accept it. I'll try to locate the bug further, but for now, I would like
to thank you for your support.

-- 
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