--- linux-2.6.16.x86_64/fs/exportfs/expfs.c.org +++ linux-2.6.16.x86_64/fs/exportfs/expfs.c @@ -102,7 +102,7 @@ find_exported_dentry(struct super_block if (acceptable(context, result)) return result; if (S_ISDIR(result->d_inode->i_mode)) { - /* there is no other dentry, so fail */ + err = -EACCES; goto err_result; }