Busybox 1.3.0 is available
Denis Vlasenko
vda.linux at googlemail.com
Fri Dec 15 14:36:44 PST 2006
On Friday 15 December 2006 00:42, Aurelien Jacobs wrote:
> 5. Compiling without any pwd_grp enabled in the system (neither in
> uClibc nor in busybox). My system don't even have a /etc/passwd. It
> don't have any kind of user management. And I don't wan't any user
> managment code to get compiled in. Note that I didn't fixed this one
> properly. I just wrote a crappy hack to get busybox to finally compile.
> So 11_pwd_grp.diff shouldn't be commited. It's here just for the
> example. Someone need to propose a proper fix.
I propose putting #if around uidgid_get() declaration in .h file:
#if ENABLE_USE_BB_PWD_GRP
unsigned uidgid_get(struct bb_uidgid_t *u, const char *ug /*, unsigned dogrp */);
#else
extern inline
unsigned uidgid_get(struct bb_uidgid_t *u, const char *ug /*, unsigned dogrp */)
{ return 0; }
#endif
This way gcc will optimize out code like "if ([!]uidgid_get(...)) ..."
Give it a try if you feel so inclined.
--
vda
More information about the busybox
mailing list