From acff5163ca7be59e01438f7cf63faef9ed54b820 Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Wed, 1 Mar 2006 15:11:56 +0000 Subject: [PATCH] r13771: BUG 3534: ignore lines in the username map file with no right hand list rather than bailing out --- source/smbd/map_username.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source/smbd/map_username.c b/source/smbd/map_username.c index a6025fcf47f..1f523cc89f1 100644 --- a/source/smbd/map_username.c +++ b/source/smbd/map_username.c @@ -142,10 +142,12 @@ BOOL map_username(fstring user) } } + /* skip lines like 'user = ' */ + dosuserlist = str_list_make(dosname, NULL); if (!dosuserlist) { - DEBUG(0,("Unable to build user list\n")); - return False; + DEBUG(0,("Bad username map entry. Unable to build user list. Ignoring.\n")); + continue; } if (strchr_m(dosname,'*') ||