diff -ru samba-3.0.7.orig/source/client/smbmount.c samba-3.0.7/source/client/smbmount.c --- samba-3.0.7.orig/source/client/smbmount.c 2004-04-20 21:42:58.000000000 +0100 +++ samba-3.0.7/source/client/smbmount.c 2006-01-07 18:07:20.000000000 +0000 @@ -388,6 +388,9 @@ 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)