summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-03-14 00:58:53 +0000
committerJeremy Allison <jra@samba.org>2002-03-14 00:58:53 +0000
commit47c2477233197e426705b0e1d28fe4ca9ae113fa (patch)
treeb0c034608cfd3f60b014cee93d52c3c54e1cdfb6
parent2ba1950c799137589c4111c9406f88a8f7526e0b (diff)
downloadsamba-47c2477233197e426705b0e1d28fe4ca9ae113fa.tar.gz
samba-47c2477233197e426705b0e1d28fe4ca9ae113fa.tar.bz2
samba-47c2477233197e426705b0e1d28fe4ca9ae113fa.zip
Get the current directory after becoming root.
Jeremy. (This used to be commit f032c6f710cb0edcf02f25db81c83478b9a8ab1e)
-rw-r--r--source3/smbd/oplock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/oplock.c b/source3/smbd/oplock.c
index 39bcb558f1..c55c806a43 100644
--- a/source3/smbd/oplock.c
+++ b/source3/smbd/oplock.c
@@ -729,8 +729,8 @@ static BOOL oplock_break(SMB_DEV_T dev, SMB_INO_T inode, unsigned long file_id,
saved_user_conn = current_user.conn;
saved_vuid = current_user.vuid;
saved_fsp_conn = fsp->conn;
- vfs_GetWd(saved_fsp_conn,saved_dir);
change_to_root_user();
+ vfs_GetWd(saved_fsp_conn,saved_dir);
/* Save the chain fnum. */
file_chain_save();