From aa363846d6c26869a780b1ad1ad2e3b3588a7387 Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Fri, 13 Jan 2006 18:45:30 +0000 Subject: r12912: patch from Tony Mountifield for BUG 3327 (fix bad access to gencache.tdb after fork() in smbmount (This used to be commit 68399ce04ca4509d51950d2d7b1ed817e82bf17c) --- source3/client/smbmount.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source3/client') diff --git a/source3/client/smbmount.c b/source3/client/smbmount.c index 4438964b83..d8254ef23a 100644 --- a/source3/client/smbmount.c +++ b/source3/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) -- cgit