Busybox and user/group problem

Denys Vlasenko vda.linux at googlemail.com
Thu Sep 20 11:30:00 UTC 2007


On Thursday 20 September 2007 08:59, JBLinux wrote:
> I'm using the latest BB 1.7.1
> CONFIG_USE_BB_PWD_GRP=y

Does it work without CONFIG_USE_BB_PWD_GRP?

If it works without CONFIG_USE_BB_PWD_GRP, then
it means that bbox has a bug. Add these lines then:

struct group *getgrnam(const char *name)
{
        struct statics *S;
        struct group *resultbuf = RESULTBUF(getgrnam);
        char *buffer = BUFFER(getgrnam);
        struct group *result;

+	errno = 0;
        getgrnam_r(name, resultbuf, buffer, sizeof(BUFFER(getgrnam)), &result);
+	bb_error_msg("getgrnam_r errno %d", errno);
        return result;
}

set CONFIG_USE_BB_PWD_GRP=y, recompile busybox
and run chgrp again. What do you see?
--
vda



More information about the busybox mailing list