cifs.upcall was not recognizing the newer name "dns_resolver" key type
authorSteve French <stevef@smf-t60p.smfdom>
Thu, 24 Jul 2008 14:32:53 +0000 (09:32 -0500)
committerSteve French <stevef@smf-t60p.smfdom>
Thu, 24 Jul 2008 14:32:53 +0000 (09:32 -0500)
(as a synonym for the older "cifs.resolver" name) when resolving host
names to ip addresses for the kernel.

Acked-by: Jeff Layton
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;
        }