[RFC, PATCH] passwd size reduction

Tito farmatito at tiscali.it
Mon Nov 27 14:02:21 PST 2006


On Monday 27 November 2006 19:00, Bernhard Fischer wrote:
> Hi,
> 
> I'm attaching a (minor, non-intrusive) shrinkage of passwd. Note that
> it was only compile-tested, so don't check this in as-is!
> 
> Tito, vda, i'd be glad if you'd give it a whirl, if you find the time.
> You need to apply all patches in ascending order.
> 
> thanks!
> 
> passwd.o.orig:	current svn
> passwd.o.01b:	remove get_algo. the helptext needs updating to remove
> sha1 since this was not supported anyway, AFAICS.
> passwd.o.01c:	move some _main state vars into 'opt'; includes
> non-existing 01b-patch, sorry.
> passwd.o.01d:	move some more _main uid-related state vars into 'opt'
> passwd.o.01e:	sanitize error pathes
> passwd.o.01f:	sanitize some more error pathes and reuse more of libbb
> 
Hi, here some one more patch with some more optimizations, only compile tested.
passwd.01g:  minor optimizations on syslog, text strings, etc.


Ciao,
Tito
> $ size passwd.o*
>    text    data     bss     dec     hex filename
>    2984       0     135    3119     c2f passwd.o.orig
>    2984       0     135    3119     c2f passwd.o.01b
>    2895       0     135    3030     bd6 passwd.o.01c
>    2887       0     135    3022     bce passwd.o.01d
>    2824       0     135    2959     b8f passwd.o.01e
>    2810       0     135    2945     b81 passwd.o.01f
> 
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: passwd.01g.patch
Type: text/x-diff
Size: 4920 bytes
Desc: not available
Url : http://busybox.net/lists/busybox/attachments/20061127/036adfa3/attachment-0001.bin 


More information about the busybox mailing list