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
_______________________________________________
busybox mailing list
busybox@busybox.net
http://busybox.net/cgi-bin/mailman/listinfo/busybox

Reply via email to