summaryrefslogtreecommitdiff
path: root/source3/nsswitch
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-05-10 10:41:59 +0000
committerAndrew Tridgell <tridge@samba.org>2000-05-10 10:41:59 +0000
commit49a0e6d5989656c1b3c9c063a20308ca4ee5d73b (patch)
tree6c89da7fcb785e86a55c92a813045b9fc3712f51 /source3/nsswitch
parentddc9b8b40642c90fe7c34b088eae4f8075f4033a (diff)
downloadsamba-49a0e6d5989656c1b3c9c063a20308ca4ee5d73b.tar.gz
samba-49a0e6d5989656c1b3c9c063a20308ca4ee5d73b.tar.bz2
samba-49a0e6d5989656c1b3c9c063a20308ca4ee5d73b.zip
more merging voodoo
this adds "#define OLD_NTDOMAIN 1" in lots of places. Don't panic - this isn't permanent, it should go after another few merge steps have been done (This used to be commit 92109d7b3c06f240452d39f669ecb8c9c86ab610)
Diffstat (limited to 'source3/nsswitch')
-rw-r--r--source3/nsswitch/winbindd_util.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source3/nsswitch/winbindd_util.c b/source3/nsswitch/winbindd_util.c
index f909480167..b3e5780f93 100644
--- a/source3/nsswitch/winbindd_util.c
+++ b/source3/nsswitch/winbindd_util.c
@@ -486,6 +486,13 @@ static BOOL parse_id_list(char *paramstr, BOOL is_user)
{
uid_t id_low, id_high = 0;
+ /* Give a nicer error message if no parameters specified */
+
+ if (strequal(paramstr, "")) {
+ DEBUG(0, ("winbid %s parameter missing\n", is_user ? "uid" : "gid"));
+ return False;
+ }
+
/* Parse entry */
if (sscanf(paramstr, "%u-%u", &id_low, &id_high) != 2) {