Ignore:
Timestamp:
Mar 11, 2009, 9:14:55 AM (17 years ago)
Author:
Paul Smedley
Message:

Add 'missing' 3.0.34 diffs

File:
1 edited

Legend:

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

    r124 r165  
    157157               
    158158                if ( strcmp( fname, "." ) == 0 ) {
    159                         pstr_sprintf( fullpath, "%s%s",
    160                                 (strchr( sharepath,':')) ? "" : "C:", sharepath );
     159                        pstr_sprintf( fullpath, "C:%s", sharepath );
    161160                } else {
    162                         pstr_sprintf( fullpath, "%s%s/%s",
    163                                 (strchr( sharepath,':')) ? "" : "C:", sharepath, fname );
     161                        pstr_sprintf( fullpath, "C:%s/%s", sharepath, fname );
    164162                }
    165163                string_replace( fullpath, '/', '\\' );
     
    265263        pstrcpy(remark, lp_comment(snum));
    266264        standard_sub_conn(p->conn, remark,sizeof(remark));
    267         if (strchr( lp_pathname(snum), ':'))
    268                 pstrcpy(path, "");
    269         else
    270                 pstrcpy(path, "C:");
     265        pstrcpy(path, "C:");
    271266        pstrcat(path, lp_pathname(snum));
    272267
     
    348343        pstrcpy(remark, lp_comment(snum));
    349344        standard_sub_conn(p->conn, remark,sizeof(remark));
    350         if (strchr( lp_pathname(snum), ':'))
    351                 pstrcpy(path, "");
    352         else
    353                 pstrcpy(path, "C:");
     345        pstrcpy(path, "C:");
    354346        pstrcat(path, lp_pathname(snum));
    355347
     
    14521444        /* NT is braindead - it wants a C: prefix to a pathname ! So strip it. */
    14531445        ptr = dos_pathname;
    1454 
    1455 #ifdef __OS2__
    1456 
    1457         /* Only absolute paths allowed. */
    1458         if (strlen(dos_pathname) < 2 || ptr[1] != ':')
    1459                 return NULL;
    1460 #else
    1461 
    14621446        if (strlen(dos_pathname) > 2 && ptr[1] == ':' && ptr[0] != '/')
    14631447                ptr += 2;
     
    14661450        if (*ptr != '/')
    14671451                return NULL;
    1468 #endif
    14691452
    14701453        return ptr;
     
    21892172***********************************************************************************/
    21902173
    2191 static const char *server_disks[] = {"C:"
    2192 #ifdef __OS2__
    2193         // YD we can use a better implementation (real time scan or above idea)
    2194         ,"D:","E:","F:","G:","H:","I:","J:","K:","L:","M:","N:","O:"
    2195         ,"P:","Q:","R:","S:","T:","U:","V:","W:","X:","Y:","Z:"
    2196 #endif
    2197 };
     2174static const char *server_disks[] = {"C:"};
    21982175
    21992176static uint32 get_server_disk_count(void)
Note: See TracChangeset for help on using the changeset viewer.