lkml.org 
[lkml]   [2000]   [Sep]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subjectnet/sunrpc/clnt.c: erroneous fallthru
There is a missing case break in net/sunrpc/clnt.c that causes the kernel
to print an extra, spurious message when a Sun RPC (NFS) request is rejected
by a server with the error RPC_AUTH_TOOWEAK. The missing break also causes
EIO to be returned to the user process instead of EACCES, which seems wrong
too. I noticed this bug in kernel 2.2.14, but I checked and it's still in
2.4.0-test8, so the patch is still needed. Here it is.

--- /usr/src/linux-2.2.14/net/sunrpc/clnt.c Tue Jan 4 10:12:27 2000
+++ /tmp/clnt.c Wed Sep 20 16:42:33 2000
@@ -784,6 +784,7 @@
case RPC_AUTH_TOOWEAK:
printk("call_verify: server requires stronger "
"authentication.\n");
+ break;
default:
printk("call_verify: unknown auth error: %x\n", n);
error = -EIO;
--
Tim Mann tim.mann@compaq.com http://www.tim-mann.org
Compaq Computer Corporation, Systems Research Center, Palo Alto, CA
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 12:38    [W:1.881 / U:0.000 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site