Ignore:
Timestamp:
Dec 11, 2007, 9:44:35 AM (18 years ago)
Author:
Paul Smedley
Message:

test fix for Ticket #9

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.0/source/smbd/service.c

    r26 r108  
    6262#ifndef __OS2__
    6363        *d++ = '/'; /* Always start with root. */
    64 #else
    65         if ((connectpath[0]=='/')||(connectpath[0]=='\\'))
    66             *d++ = '/'; /* Start with root if connectpath is not a drive path. */
    67 #endif
    6864
    6965        while (*s) {
     
    152148        *d = '\0';
    153149
    154 #ifndef __OS2__
    155150        /* And must not end in '/' */
    156151        if (d > destname + 1 && (*(d-1) == '/')) {
     
    158153        }
    159154#else
    160         /* Must not end in '/' if we are sharing a drive letter on OS/2 */
    161         if (d > destname + 1 && (*(d-1) == ':')) {
    162                 *(d) = '/';
    163         }
    164 
    165 #endif
     155        /* Assume OS/2 users are smart enough to put a correct path in smb.conf, and simply copy the string */
     156        pstrcpy(destname, connectpath);
     157#endif 
    166158
    167159        DEBUG(10,("set_conn_connectpath: service %s, connectpath = %s\n",
Note: See TracChangeset for help on using the changeset viewer.