diff options
author | Gerald Carter <jerry@samba.org> | 2004-03-19 22:06:54 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2004-03-19 22:06:54 +0000 |
commit | c24dccd413c41ed81454bc204c59d1fc17a54a33 (patch) | |
tree | 5dfc0b0db54ce4bf29cfb679340be4ed383cdcad /source3/lib/username.c | |
parent | d0b10586d1f9661a6fcf6934e52f8877c2578745 (diff) | |
download | samba-c24dccd413c41ed81454bc204c59d1fc17a54a33.tar.gz |
BUG 417: fix %UuGg variables expansion in include lines setging the current_user_info struct in register_vuid() -- shouldn't be any more broken than we were
(This used to be commit a90c3bd281e7a62bb8482e42aa3b674eeeb5995a)
Diffstat (limited to 'source3/lib/username.c')
-rw-r--r-- | source3/lib/username.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/lib/username.c b/source3/lib/username.c index 40327f81687..ac5530b5c71 100644 --- a/source3/lib/username.c +++ b/source3/lib/username.c @@ -283,6 +283,11 @@ struct passwd *Get_Pwnam(const char *user) fstring user2; struct passwd *ret; + if ( *user == '\0' ) { + DEBUG(10,("Get_Pwnam: empty username!\n")); + return NULL; + } + fstrcpy(user2, user); DEBUG(5,("Finding user %s\n", user)); |