patch-2.1.34 linux/fs/nfsd/vfs.c

Next file: linux/fs/proc/array.c
Previous file: linux/fs/nfsd/nfssvc.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.33/linux/fs/nfsd/vfs.c linux/fs/nfsd/vfs.c
@@ -29,7 +29,7 @@
 #include <linux/in.h>
 #include <linux/unistd.h>
 #include <linux/malloc.h>
-#include <netinet/in.h>
+#include <linux/in.h>
 
 #include <linux/sunrpc/svc.h>
 #include <linux/nfsd/nfsd.h>
@@ -837,7 +837,7 @@
 		return 0;
 
 	if ((err = nfsd_open(rqstp, fhp, S_IFDIR, OPEN_READ, &file)) != 0)
-		return nfserrno(-err);
+		return err;
 
 	if (!file.f_op->readdir) {
 		nfsd_close(&file);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov