summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2002-04-15 23:48:39 +0000
committerAndrew Tridgell <tridge@samba.org>2002-04-15 23:48:39 +0000
commita95d731fa496db9bf4f8173b0661fe080c1bcaed (patch)
tree554d5754b8c069ade85d4e2c423a01308e3c0c8e /source3
parent37e4471dea4e3140270d90f3f685ad4fb15fb036 (diff)
downloadsamba-a95d731fa496db9bf4f8173b0661fe080c1bcaed.tar.gz
samba-a95d731fa496db9bf4f8173b0661fe080c1bcaed.tar.bz2
samba-a95d731fa496db9bf4f8173b0661fe080c1bcaed.zip
make sure that we leave the tree unused after disconnecting
(This used to be commit e75e4ad7d3af5beee48b3001fd904eede8df033f)
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/service.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/smbd/service.c b/source3/smbd/service.c
index 9ca44b65c3..467bab4a0a 100644
--- a/source3/smbd/service.c
+++ b/source3/smbd/service.c
@@ -750,5 +750,9 @@ void close_cnum(connection_struct *conn, uint16 vuid)
standard_sub_conn(conn,cmd);
smbrun(cmd,NULL);
}
+
+ /* make sure we leave the directory available for unmount */
+ vfs_ChDir(conn, "/");
+
conn_free(conn);
}