Changeset 167


Ignore:
Timestamp:
Mar 27, 2009, 9:52:23 PM (16 years ago)
Author:
Paul Smedley
Message:

reinstate fix for ticket #24/78 part2

File:
1 edited

Legend:

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

    r166 r167  
    157157               
    158158                if ( strcmp( fname, "." ) == 0 ) {
    159                         pstr_sprintf( fullpath, "C:%s", sharepath );
     159                        pstr_sprintf( fullpath, "%s%s",
     160                                (strchr( sharepath,':')) ? "" : "C:", sharepath );
    160161                } else {
    161                         pstr_sprintf( fullpath, "C:%s/%s", sharepath, fname );
     162                        pstr_sprintf( fullpath, "%s%s/%s",
     163                                (strchr( sharepath,':')) ? "" : "C:", sharepath, fname );
    162164                }
    163165                string_replace( fullpath, '/', '\\' );
     
    263265        pstrcpy(remark, lp_comment(snum));
    264266        standard_sub_conn(p->conn, remark,sizeof(remark));
    265         pstrcpy(path, "C:");
     267        if (strchr( lp_pathname(snum), ':'))
     268                pstrcpy(path, "");
     269        else
     270                pstrcpy(path, "C:");
    266271        pstrcat(path, lp_pathname(snum));
    267272
     
    343348        pstrcpy(remark, lp_comment(snum));
    344349        standard_sub_conn(p->conn, remark,sizeof(remark));
    345         pstrcpy(path, "C:");
     350        if (strchr( lp_pathname(snum), ':'))
     351                pstrcpy(path, "");
     352        else
     353                pstrcpy(path, "C:");
    346354        pstrcat(path, lp_pathname(snum));
    347355
Note: See TracChangeset for help on using the changeset viewer.