Changeset 3286


Ignore:
Timestamp:
May 2, 2007, 2:00:00 AM (18 years ago)
Author:
bird
Message:

flip DOS slashes in path elements to prevent escape mishaps in scripts.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/essentials/app-shells/bash/findcmd.c

    r3280 r3286  
    274274      path = savestring (".");
    275275    }
     276#ifdef __OS2__
     277  else
     278    {
     279      /* flip DOS slashes to unix slashes */
     280      char *p = path;
     281      while ((p = strchr (p, '\\')))
     282        *p++ = '/';
     283    }
     284#endif
    276285
    277286  return (path);
Note: See TracChangeset for help on using the changeset viewer.