diff options
Diffstat (limited to 'win32')
-rw-r--r-- | win32/mingw.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/win32/mingw.c b/win32/mingw.c index 514d00692..5847e0fa0 100644 --- a/win32/mingw.c +++ b/win32/mingw.c | |||
@@ -603,6 +603,18 @@ static char *get_user_name(void) | |||
603 | return user_name; | 603 | return user_name; |
604 | } | 604 | } |
605 | 605 | ||
606 | struct passwd *getpwnam(const char *name) | ||
607 | { | ||
608 | const char *myname; | ||
609 | |||
610 | if ( (myname=get_user_name()) != NULL && | ||
611 | strcmp(myname, name) == 0 ) { | ||
612 | return getpwuid(DEFAULT_UID); | ||
613 | } | ||
614 | |||
615 | return NULL; | ||
616 | } | ||
617 | |||
606 | struct passwd *getpwuid(uid_t uid UNUSED_PARAM) | 618 | struct passwd *getpwuid(uid_t uid UNUSED_PARAM) |
607 | { | 619 | { |
608 | static struct passwd p; | 620 | static struct passwd p; |