patch-2.2.3 linux/fs/lockd/svcsubs.c
Next file: linux/fs/ncpfs/mmap.c
Previous file: linux/fs/lockd/host.c
Back to the patch index
Back to the overall index
- Lines: 25
- Date:
Mon Mar 1 10:34:56 1999
- Orig file:
v2.2.2/linux/fs/lockd/svcsubs.c
- Orig date:
Thu Dec 31 10:29:02 1998
diff -u --recursive --new-file v2.2.2/linux/fs/lockd/svcsubs.c linux/fs/lockd/svcsubs.c
@@ -52,8 +52,6 @@
struct nlm_file *file;
unsigned int hash;
u32 nfserr;
- uid_t saved_cr_uid;
- struct svc_cred *cred;
dprintk("lockd: nlm_file_lookup(%s/%u)\n",
kdevname(u32_to_kdev_t(fh->fh_dev)), fh->fh_ino);
@@ -86,15 +84,10 @@
* We have to make sure we have the right credential to open
* the file.
*/
- cred = &rqstp->rq_cred;
- saved_cr_uid = cred->cr_uid;
- cred->cr_uid = 0;
if ((nfserr = nlmsvc_ops->fopen(rqstp, fh, &file->f_file)) != 0) {
dprintk("lockd: open failed (nfserr %ld)\n", ntohl(nfserr));
- cred->cr_uid = saved_cr_uid;
goto out_free;
}
- cred->cr_uid = saved_cr_uid;
file->f_next = nlm_files[hash];
nlm_files[hash] = file;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)