Changeset 166 for branches/samba-3.0


Ignore:
Timestamp:
Mar 27, 2009, 9:53:10 AM (16 years ago)
Author:
Paul Smedley
Message:

reinstate fix for ticket #24/78

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.0/source/rpc_server/srv_srvsvc_nt.c

    r165 r166  
    14441444        /* NT is braindead - it wants a C: prefix to a pathname ! So strip it. */
    14451445        ptr = dos_pathname;
    1446         if (strlen(dos_pathname) > 2 && ptr[1] == ':' && ptr[0] != '/')
     1446#ifdef __OS2__
     1447        /* Only absolute paths allowed. */
     1448        if (strlen(dos_pathname) < 2 || ptr[1] != ':')
     1449                        return NULL;
     1450#else
     1451        if (strlen(dos_pathname) > 2 && ptr[1] == ':' && ptr[0] != '/')
    14471452                ptr += 2;
    14481453
     
    14501455        if (*ptr != '/')
    14511456                return NULL;
    1452 
     1457#endif
    14531458        return ptr;
    14541459}
     
    21722177***********************************************************************************/
    21732178
    2174 static const char *server_disks[] = {"C:"};
     2179static const char *server_disks[] = {"C:"
     2180#ifdef __OS2__
     2181        // YD we can use a better implementation (real time scan or above idea)
     2182        ,"D:","E:","F:","G:","H:","I:","J:","K:","L:","M:","N:","O:"
     2183        ,"P:","Q:","R:","S:","T:","U:","V:","W:","X:","Y:","Z:"
     2184#endif
     2185};
    21752186
    21762187static uint32 get_server_disk_count(void)
Note: See TracChangeset for help on using the changeset viewer.