diff options
-rw-r--r-- | fs/nfsd/nfs4recover.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/fs/nfsd/nfs4recover.c b/fs/nfsd/nfs4recover.c index 64f4af3651a1..06da7506363c 100644 --- a/fs/nfsd/nfs4recover.c +++ b/fs/nfsd/nfs4recover.c | |||
@@ -399,9 +399,10 @@ nfsd4_init_recdir(char *rec_dirname) | |||
399 | 399 | ||
400 | nfs4_save_user(&uid, &gid); | 400 | nfs4_save_user(&uid, &gid); |
401 | 401 | ||
402 | status = path_lookup(rec_dirname, LOOKUP_FOLLOW, &rec_dir); | 402 | status = path_lookup(rec_dirname, LOOKUP_FOLLOW | LOOKUP_DIRECTORY, |
403 | if (status == -ENOENT) | 403 | &rec_dir); |
404 | printk("NFSD: recovery directory %s doesn't exist\n", | 404 | if (status) |
405 | printk("NFSD: unable to find recovery directory %s\n", | ||
405 | rec_dirname); | 406 | rec_dirname); |
406 | 407 | ||
407 | if (!status) | 408 | if (!status) |