Author: vlendec
Date: 2006-09-30 09:45:53 +0000 (Sat, 30 Sep 2006)
New Revision: 19010

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=19010

Log:
Fix bug 4137
Modified:
   branches/SAMBA_3_0/source/smbd/share_access.c


Changeset:
Modified: branches/SAMBA_3_0/source/smbd/share_access.c
===================================================================
--- branches/SAMBA_3_0/source/smbd/share_access.c       2006-09-30 07:54:20 UTC 
(rev 19009)
+++ branches/SAMBA_3_0/source/smbd/share_access.c       2006-09-30 09:45:53 UTC 
(rev 19010)
@@ -217,6 +217,10 @@
                const char *list[2];
                list[0] = lp_username(snum);
                list[1] = NULL;
+               if ((list[0] == NULL) || (*list[0] == '\0')) {
+                       DEBUG(0, ("'only user = yes' and no 'username ='\n"));
+                       return False;
+               }
                if (!token_contains_name_in_list(NULL, lp_servicename(snum),
                                                 token, list)) {
                        DEBUG(10, ("%s != 'username'\n", username));

Reply via email to