Changeset 1830


Ignore:
Timestamp:
Mar 13, 2005, 11:48:58 AM (20 years ago)
Author:
bird
Message:

UNC fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/src/lib/sys/fs.c

    • Property cvs2svn:cvs-rev changed from 1.13 to 1.14
    r1829 r1830  
    938938        if (szTmp[0] == '/' && szTmp[1] == '/')
    939939        {
    940             /* UNC - skip past the server name. */
     940            /* UNC - skip past the share name. */
    941941            psz = strchr(&szTmp[2], '/');
    942942            if (!psz)
     
    945945                break;
    946946            }
     947            psz = strchr(psz + 1, '/');
     948            if (!psz)
     949            {
     950                strupr(szTmp);          /* The server + share is uppercased for consistant ino_t calculations. */
     951                rcRet = 0;
     952                break;
     953            }
     954            *psz = '\0';                /* The server + share is uppercased for consistant ino_t calculations. */
     955            strupr(szTmp);
     956            *psz = '/';
    947957            pszPrev = ++psz;
    948             iRoot = psz - &szTmp[0];    /* Unix root cannot be UNC. */
     958            fInUnixTree = 0;            /* Unix root cannot be UNC. */
     959            iRoot = psz - &szTmp[0];
    949960            psz = strchr(psz, '/');
    950961        }
Note: See TracChangeset for help on using the changeset viewer.