cifs.upcall was not recognizing the newer name "dns_resolver" key type
authorSteve French <stevef@smf-t60p.smfdom>
Fri, 12 Sep 2008 20:57:59 +0000 (16:57 -0400)
committerKarolin Seeger <kseeger@samba.org>
Mon, 12 Jan 2009 09:11:52 +0000 (10:11 +0100)
(as a synonym for the older "cifs.resolver" name) when resolving host
names to ip addresses for the kernel.

Acked-by: Jeff Layton
(cherry picked from commit da92a35cae09d312f11f77d900132422162c435a)

source/client/cifs.upcall.c

index e3893260ddc705fce508ebc828510524e91d7347..70dae1a412322bf5543b0976dba96051b955fdb0 100644 (file)
@@ -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;
        }