c97be4db86
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>
18 lines
265 B
C
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;
|
|
}
|