From 49a0e6d5989656c1b3c9c063a20308ca4ee5d73b Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 10 May 2000 10:41:59 +0000 Subject: 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) --- source3/nsswitch/winbindd_util.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'source3/nsswitch') 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) { -- cgit