]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/nfsd/nfs4recover.c
CRED: Pass credentials through dentry_open()
[linux-2.6-omap-h63xx.git] / fs / nfsd / nfs4recover.c
index a5e14e8695ea50f8ab3962e601257519d2e8a305..632a50b4b371064d8a837d71f89d7e645384d359 100644 (file)
@@ -226,7 +226,8 @@ nfsd4_list_rec_dir(struct dentry *dir, recdir_func *f)
 
        nfs4_save_user(&uid, &gid);
 
-       filp = dentry_open(dget(dir), mntget(rec_dir.mnt), O_RDONLY);
+       filp = dentry_open(dget(dir), mntget(rec_dir.mnt), O_RDONLY,
+                          current_cred());
        status = PTR_ERR(filp);
        if (IS_ERR(filp))
                goto out;