summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2006-03-01 15:11:56 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:10:53 -0500
commit4f636b57c1330677db3ff17fd91b880cec38eb2c (patch)
tree29009a3c1479bdc2c8e71533f87113170e070e12
parenta2327fc68848a1352fed5273969d4c674b1dbd73 (diff)
downloadsamba-4f636b57c1330677db3ff17fd91b880cec38eb2c.tar.gz
samba-4f636b57c1330677db3ff17fd91b880cec38eb2c.tar.bz2
samba-4f636b57c1330677db3ff17fd91b880cec38eb2c.zip
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)
-rw-r--r--source3/smbd/map_username.c6
1 files changed, 4 insertions, 2 deletions
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,'*') ||