Changeset 3164 for trunk/ash/exec.c


Ignore:
Timestamp:
Apr 22, 2007, 3:46:03 AM (18 years ago)
Author:
bird
Message:

convert dos slashes to unix slashes found in the PATH as to not upset any shell scripts using $0.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ash/exec.c

    r2463 r3164  
    332332        const char *p;
    333333        char *q;
     334#ifdef __EMX__
     335        char *s;
     336#endif
    334337        const char *start;
    335338        int len;
     
    349352        while (stackblocksize() < len)
    350353                growstackblock();
     354#ifdef __EMX__
     355        s =
     356#endif
    351357        q = stackblock();
    352358        if (p != start) {
     
    356362        }
    357363        strcpy(q, name);
     364#ifdef __EMX__
     365        while ((s = strchr(s, '\\')) != NULL)
     366                *s++ = '/';
     367#endif
    358368        pathopt = NULL;
    359369        if (*p == '%') {
Note: See TracChangeset for help on using the changeset viewer.