file descriptor 5 in bb 1.5.0?

Tito farmatito at tiscali.it
Sat Apr 28 20:40:17 UTC 2007


On Saturday 28 April 2007 19:41:23 01flipstar at web.de wrote:
> Hello,
> 
> IŽm trying to update the firmware of an arm-based NAS (NAS-2000 raidsonic).
> The problem IŽm facing now is that one of the constructor programms is not working
> when I change busybox from v.1.0 to 1.5.
> I used strace to figure out the differences between the two versions:
> 
> busybox 1.0
> 
> .....
> read(5, 0xbefffcd4, 16)                 = -1 EAGAIN (Resource temporarily unavailable)
> fstat64(1, {st_mode=S_IFCHR|0600, st_rdev=makedev(204, 40), ...}) = 0
> ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B19200 opost isig icanon echo ...}) = 0
> mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x3fc4d000
> write(1, "construct_admin.c System adminis"..., 71) = 71
> write(5, "CREATE \"User\" \"createDir\" = \"1\" "..., 117) = 117
> poll([{fd=5, events=POLLIN|POLLERR|POLLHUP|POLLNVAL}], 1, 1000) = 0
> poll([{fd=5, events=POLLIN|POLLERR|POLLHUP|POLLNVAL}], 1, 1000) = 0
> poll([{fd=5, events=POLLIN|POLLERR|POLLHUP|POLLNVAL}], 1, 1000) = 0
> poll([{fd=5, events=POLLIN|POLLERR|POLLHUP|POLLNVAL}], 1, 1000) = 0
> poll([{fd=5, events=POLLIN|POLLERR|POLLHUP|POLLNVAL}], 1, 1000) = 0
> poll([{fd=5, events=POLLIN|POLLERR|POLLHUP|POLLNVAL, revents=POLLIN}], 1, 1000) = 1
> fcntl64(5, F_SETFL, O_RDONLY|O_NONBLOCK) = 0
> read(5, "104 OBJECT ", 16)              = 11
> .....
> 
> busybox-1.5.0
> 
> .....
> read(3, 0xbefffce4, 16)                 = -1 EAGAIN (Resource temporarily unavailable)
> fstat64(1, {st_mode=S_IFCHR|0600, st_rdev=makedev(204, 40), ...}) = 0
> ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B19200 opost isig icanon echo ...}) = 0
> mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x3fc4d000
> write(1, "construct_admin.c System adminis"..., 71) = 71
> write(3, "CREATE \"User\" \"createDir\" = \"1\" "..., 117) = 117
> poll([{fd=3, events=POLLIN|POLLERR|POLLHUP|POLLNVAL}], 1, 1000) = 0
> poll([{fd=3, events=POLLIN|POLLERR|POLLHUP|POLLNVAL, revents=POLLIN}], 1, 1000) = 1
> fcntl64(3, F_SETFL, O_RDONLY|O_NONBLOCK) = 0
> read(3, "401 FAIL ", 16)                = 9
> .....
> 
> As far as I can see busybox 1.0 is using fd5 so my question is, is there a way to force busybox-1.5 to
> use fd5 as well?
> 
> The complete strace can be found at:
> http://www-stud.hs-fulda.de/~flipstar/busybox/
> 
> 
> An other strange thing is that if I configure bb passwd-length for at leased 6chars and then change the
> passwd for a none root-user bb is not really making a passwd update for shorter passwds what is ok but I would expect that bb complains about the to short passwd?!?! 
> 
> flipstar at nas2000:~ $ passwd
> Changing password for flipstar
> Old password:
> New password:                            say X
> Retype password:                               X
> passwd: setuid
> 
In  Login/Password Management Utilities
yuo have to enable:

[*] passwd                                             
	[*]   Check new passwords for weakness      

hope this works.

Ciao,
Tito
> thanks very much in advance 
> philipp
> _______________________________________________________________
> SMS schreiben mit WEB.DE FreeMail - einfach, schnell und
> kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192
> 
> _______________________________________________
> busybox mailing list
> busybox at busybox.net
> http://busybox.net/cgi-bin/mailman/listinfo/busybox
> 





More information about the busybox mailing list