summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2003-10-03 15:11:24 +0000
committerGerald Carter <jerry@samba.org>2003-10-03 15:11:24 +0000
commitcd141e33fa51058a66a56a2cbd021f5e08e216d5 (patch)
treed5c79957a232798a8d538f8d355d7807496623d4 /source3/smbd
parentfaca10b35d5a3a311f55301889dca9743ad0e176 (diff)
downloadsamba-cd141e33fa51058a66a56a2cbd021f5e08e216d5.tar.gz
samba-cd141e33fa51058a66a56a2cbd021f5e08e216d5.tar.bz2
samba-cd141e33fa51058a66a56a2cbd021f5e08e216d5.zip
cleaning out patch list; patch from Steve L. to change the cwd before the postexec script
(This used to be commit 497e14ba19f4f637e1203d73981ea1c401a19542)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/service.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/smbd/service.c b/source3/smbd/service.c
index e4c3890f86..e5655bd9f4 100644
--- a/source3/smbd/service.c
+++ b/source3/smbd/service.c
@@ -894,6 +894,9 @@ void close_cnum(connection_struct *conn, uint16 vuid)
file_close_conn(conn);
dptr_closecnum(conn);
+ /* make sure we leave the directory available for unmount */
+ vfs_ChDir(conn, "/");
+
/* execute any "postexec = " line */
if (*lp_postexec(SNUM(conn)) &&
change_to_user(conn, vuid)) {
@@ -913,8 +916,5 @@ void close_cnum(connection_struct *conn, uint16 vuid)
smbrun(cmd,NULL);
}
- /* make sure we leave the directory available for unmount */
- vfs_ChDir(conn, "/");
-
conn_free(conn);
}