Work around a handle leak in XP 64 bit
authorVolker Lendecke <vl@samba.org>
Sat, 8 Mar 2008 09:27:03 +0000 (10:27 +0100)
committerVolker Lendecke <vl@samba.org>
Sat, 8 Mar 2008 09:27:03 +0000 (10:27 +0100)
We have to tell XP64 that we store unicode, otherwise some library will to a
findfirst before each createfile, leaking a directory handle each time.

source/smbd/trans2.c

index 623117bdcb7861abe51434f6395fe88673b440e1..a60f306c7b18a2f564077f397eddf4155b9e9796 100644 (file)
@@ -2365,6 +2365,7 @@ cBytesSector=%u, cUnitTotal=%u, cUnitAvail=%d\n", (unsigned int)st.st_dev, (unsi
 
                        SIVAL(pdata,0,FILE_CASE_PRESERVED_NAMES|FILE_CASE_SENSITIVE_SEARCH|
                                (lp_nt_acl_support(SNUM(conn)) ? FILE_PERSISTENT_ACLS : 0)|
+                               FILE_UNICODE_ON_DISK|
                                quota_flag); /* FS ATTRIBUTES */
 
                        SIVAL(pdata,4,255); /* Max filename component length */