]> git.hungrycats.org Git - linux/commitdiff
[PATCH] kNFSd: fix an error return for OP_CREATE
authorAndrew Morton <akpm@osdl.org>
Thu, 26 Feb 2004 14:49:54 +0000 (06:49 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 26 Feb 2004 14:49:54 +0000 (06:49 -0800)
From: NeilBrown <neilb@cse.unsw.edu.au>

fix an error return for OP_CREATE

fs/nfsd/nfs4proc.c

index 3c7e30d99970f73e8a5cdad5de8f550c4eea3fc0..859ac37364d2752ba072556308ef82e6bc9055a5 100644 (file)
@@ -250,6 +250,8 @@ nfsd4_create(struct svc_rqst *rqstp, struct svc_fh *current_fh, struct nfsd4_cre
        fh_init(&resfh, NFS4_FHSIZE);
 
        status = fh_verify(rqstp, current_fh, S_IFDIR, MAY_CREATE);
+       if (status == nfserr_symlink)
+               status = nfserr_notdir;
        if (status)
                return status;