Changes from APPLIANCE_HEAD:
[ira/wip.git] / source3 / smbd / connection.c
index b0b4bbab7b7b67038e6263eae5e7f65f3f147444..8ab4e0c5d3f24cbd2e865ecc0fd4bdb88bf812d9 100644 (file)
@@ -57,6 +57,7 @@ BOOL yield_connection(connection_struct *conn,char *name,int max_connections)
        key.pid = sys_getpid();
        key.cnum = conn?conn->cnum:-1;
        fstrcpy(key.name, name);
+       dos_to_unix(key.name, True);           /* Convert key to unix-codepage */
 
        kbuf.dptr = (char *)&key;
        kbuf.dsize = sizeof(key);
@@ -93,6 +94,7 @@ BOOL claim_connection(connection_struct *conn,char *name,int max_connections,BOO
        key.pid = sys_getpid();
        key.cnum = conn?conn->cnum:-1;
        fstrcpy(key.name, name);
+       dos_to_unix(key.name, True);           /* Convert key to unix-codepage */
 
        kbuf.dptr = (char *)&key;
        kbuf.dsize = sizeof(key);