]> git.hungrycats.org Git - linux/commitdiff
[PATCH] kNFSd: Fix an out-of-spec error in nfsd4_remove.
authorAndrew Morton <akpm@osdl.org>
Thu, 26 Feb 2004 14:50:50 +0000 (06:50 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 26 Feb 2004 14:50:50 +0000 (06:50 -0800)
From: NeilBrown <neilb@cse.unsw.edu.au>

Fix an out-of-spec error in nfsd4_remove.

fs/nfsd/nfs4proc.c

index 5d1f0009ee4ca69945723873e0431a7479d75948..413e56c180b2b4b643bb8948fa724e70b2cc8033 100644 (file)
@@ -478,6 +478,8 @@ nfsd4_remove(struct svc_rqst *rqstp, struct svc_fh *current_fh, struct nfsd4_rem
        int status;
 
        status = nfsd_unlink(rqstp, current_fh, 0, remove->rm_name, remove->rm_namelen);
+       if (status == nfserr_symlink)
+               return nfserr_notdir;
        if (!status) {
                fh_unlock(current_fh);
                set_change_info(&remove->rm_cinfo, current_fh);