From 0732750497dabb441e4657093c329f829d91d58c Mon Sep 17 00:00:00 2001 From: Steve French Date: Thu, 24 Jul 2008 09:32:53 -0500 Subject: cifs.upcall was not recognizing the newer name "dns_resolver" key type (as a synonym for the older "cifs.resolver" name) when resolving host names to ip addresses for the kernel. Acked-by: Jeff Layton (This used to be commit 22c36b27c60193102b3153e073216865adb1b6c1) --- source3/client/cifs.upcall.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source3/client/cifs.upcall.c') diff --git a/source3/client/cifs.upcall.c b/source3/client/cifs.upcall.c index e3893260dd..70dae1a412 100644 --- a/source3/client/cifs.upcall.c +++ b/source3/client/cifs.upcall.c @@ -262,7 +262,8 @@ int main(const int argc, char *const argv[]) goto out; } - if (strncmp(buf, "cifs.resolver", sizeof("cifs.resolver")-1) == 0) { + if ((strncmp(buf, "cifs.resolver", sizeof("cifs.resolver")-1) == 0) || + (strncmp(buf, "dns_resolver", sizeof("dns_resolver")-1) == 0)) { rc = cifs_resolver(key, buf); goto out; } -- cgit