Ignore:
Timestamp:
Jun 4, 2010, 3:11:43 PM (15 years ago)
Author:
Silvan Scherrer
Message:

Samba Server 3.5: merged changes from 3.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/server/source3/rpc_server/srv_srvsvc_nt.c

    r414 r454  
    179179
    180180        if ( strcmp( fname, "." ) == 0 ) {
     181#ifndef __OS2__
    181182                fullpath = talloc_asprintf(fenum->ctx, "C:%s", sharepath );
     183#else
     184                fullpath = talloc_asprintf(fenum->ctx, "%s%s",
     185                                                                (strchr( sharepath,':')) ? "" : "C:", sharepath );
     186#endif
    182187        } else {
     188#ifndef __OS2__
    183189                fullpath = talloc_asprintf(fenum->ctx, "C:%s/%s",
    184190                                sharepath, fname );
     191#else
     192                fullpath = talloc_asprintf(fenum->ctx, "%s%s/%s",
     193                                (strchr( sharepath,':')) ? "" : "C:", sharepath, fname );
     194#endif
    185195        }
    186196        if (!fullpath) {
     
    294304                        "", remark);
    295305        }
     306#ifdef __OS2__
     307        if (strchr( lp_pathname(snum), ':'))
     308                path = talloc_asprintf(p->mem_ctx,"%s", lp_pathname(snum));
     309        else
     310#endif 
     311
    296312        path = talloc_asprintf(p->mem_ctx,
    297313                        "C:%s", lp_pathname(snum));
     
    386402                        "", remark);
    387403        }
     404#ifdef __OS2__
     405        if (strchr( lp_pathname(snum), ':'))
     406                path = talloc_asprintf(ctx, "%s", lp_pathname(snum));
     407        else
     408#endif 
    388409        path = talloc_asprintf(ctx, "C:%s", lp_pathname(snum));
    389410        if (path) {
     
    14891510        }
    14901511
     1512#ifdef __OS2__
     1513        /* Only absolute paths allowed. */
     1514        if (strlen(ptr) < 2 || ptr[1] != ':')
     1515                return NULL;
     1516#else
    14911517        /* NT is braindead - it wants a C: prefix to a pathname ! So strip it. */
    14921518        if (strlen(ptr) > 2 && ptr[1] == ':' && ptr[0] != '/')
     
    14961522        if (*ptr != '/')
    14971523                return NULL;
     1524#endif
    14981525
    14991526        return ptr;
     
    23382365***********************************************************************************/
    23392366
     2367#ifndef __OS2__
    23402368static const char *server_disks[] = {"C:"};
     2369#else // YD we can use a better implementation (real time scan or above idea)
     2370static const char *server_disks[] = {"C:","D:","E:","F:","G:","H:","I:","J:","K:","L:","M:","N:","O:",
     2371                                            "P:","Q:","R:","S:","T:","U:","V:","W:","X:","Y:","Z:"};
     2372#endif
    23412373
    23422374static uint32 get_server_disk_count(void)
Note: See TracChangeset for help on using the changeset viewer.