diff options
author | Gerald Carter <jerry@samba.org> | 2003-10-03 15:11:38 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2003-10-03 15:11:38 +0000 |
commit | ec7716734ef8860ec8071ef7872672c4cb02a4e8 (patch) | |
tree | b41dda1e6a9693ff2a9f1f24ebd30425767dcf57 | |
parent | 8ae168b46df07414f1d56a74e2ecb8aa2332d50a (diff) | |
download | samba-ec7716734ef8860ec8071ef7872672c4cb02a4e8.tar.gz samba-ec7716734ef8860ec8071ef7872672c4cb02a4e8.tar.bz2 samba-ec7716734ef8860ec8071ef7872672c4cb02a4e8.zip |
cleaning out patch list; patch from Steve L. to change the cwd before the postexec script
(This used to be commit bbc403ec6ee119f1bbb636deb40563dfdf258a74)
-rw-r--r-- | source3/smbd/service.c | 6 |
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); } |