mdadm/pwgr.c
Neil Brown c97be4db86 Improve compiling for static binaries.
Have "#ifdef STATIC" in config.c, and the 'rmconf' target
was a mess.
Instead, create 'pwgr.c' with stub routines for those unavailable
when statically compiled, and include that in STATICOBJ

Signed-off-by: Neil Brown <neilb@suse.de>
2006-05-29 04:09:21 +00:00

18 lines
265 B
C

/*
* We cannot link a static binary with passwd/group support, so
* just do without
*/
#include <stdlib.h>
#include <pwd.h>
#include <grp.h>
struct passwd *getpwnam(const char *name)
{
return NULL;
}
struct group *getgrnam(const char *name)
{
return NULL;
}