Commit fb525fa8 authored by Tigran Mkrtchyan's avatar Tigran Mkrtchyan
Browse files

nfsv4: lookup on zero length string returns NFS4ERR_INVAL

parent 9d25fffb
......@@ -38,6 +38,10 @@ public class OperationLOOKUP extends AbstractNFSv4Operation {
throw new ChimeraNFSException(nfsstat4.NFS4ERR_NOTDIR, "parent not a directory");
}
if (name.length() < 1 ) {
throw new ChimeraNFSException(nfsstat4.NFS4ERR_INVAL, "invalid path");
}
if( name.length() > NFSv4Defaults.NFS4_MAXFILENAME ) {
throw new ChimeraNFSException(nfsstat4.NFS4ERR_NAMETOOLONG, "path too long");
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment