From 4f636b57c1330677db3ff17fd91b880cec38eb2c Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Wed, 1 Mar 2006 15:11:56 +0000 Subject: r13771: BUG 3534: ignore lines in the username map file with no right hand list rather than bailing out (This used to be commit acff5163ca7be59e01438f7cf63faef9ed54b820) --- source3/smbd/map_username.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source3/smbd') diff --git a/source3/smbd/map_username.c b/source3/smbd/map_username.c index a6025fcf47..1f523cc89f 100644 --- a/source3/smbd/map_username.c +++ b/source3/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,'*') || -- cgit