summaryrefslogtreecommitdiffstats
path: root/source/client
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2006-01-13 18:45:30 +0000
committerGerald Carter <jerry@samba.org>2006-01-13 18:45:30 +0000
commit22644d8797a962ade0064f6b46e7963ac5954ec2 (patch)
tree828f38f047bdb1f9be90eb7b92e6b84010b4996a /source/client
parent80a3b4e7178ce06592afe9853176b75b75a43fcf (diff)
downloadsamba-22644d8797a962ade0064f6b46e7963ac5954ec2.tar.gz
samba-22644d8797a962ade0064f6b46e7963ac5954ec2.tar.xz
samba-22644d8797a962ade0064f6b46e7963ac5954ec2.zip
r12912: patch from Tony Mountifield <tony@softins.co.uk> for BUG 3327 (fix bad access to gencache.tdb after fork() in smbmount
Diffstat (limited to 'source/client')
-rw-r--r--source/client/smbmount.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/client/smbmount.c b/source/client/smbmount.c
index 4438964b838..d8254ef23a7 100644
--- a/source/client/smbmount.c
+++ b/source/client/smbmount.c
@@ -386,6 +386,9 @@ static void send_fs_socket(char *the_service, char *mount_point, struct cli_stat
c = NULL;
if (!closed) {
+ /* close the name cache so that close_our_files() doesn't steal its FD */
+ namecache_shutdown();
+
/* redirect stdout & stderr since we can't know that
the library functions we use are using DEBUG. */
if ( (fd = open("/dev/null", O_WRONLY)) < 0)