Changeset 3774


Ignore:
Timestamp:
Mar 15, 2012, 9:33:39 PM (13 years ago)
Author:
bird
Message:

Backported r3773: dtsplit.c: Use _chdir_os2 instead of _chdir, since the former got the retains the old semantics of the latter. _dt_split remains thread unsafe like before.

Location:
branches/libc-0.6/src/emx/src/lib/misc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/libc-0.6/src/emx/src/lib/misc

  • branches/libc-0.6/src/emx/src/lib/misc/dtsplit.c

    r236 r3774  
    4343    return -1;
    4444  saved_errno = errno;
    45   if (_chdir (path_buf) != 0)
     45  if (_chdir_os2 (path_buf) != 0)
    4646    {
    4747      errno = saved_errno;
     
    6262            p[-1] = 0;          /* Remove last name */
    6363        }
    64       if (_chdir (path_buf) != 0)
     64      if (_chdir_os2 (path_buf) != 0)
    6565        return -1;
    6666    }
    6767  if (strcmp (mask_buf, "..") == 0)
    6868    {
    69       _chdir (old_dir);
     69      _chdir_os2 (old_dir);
    7070      errno = EINVAL;
    7171      return -1;
     
    7474    {
    7575      saved_errno = errno;
    76       _chdir (old_dir);
     76      _chdir_os2 (old_dir);
    7777      errno = saved_errno;
    7878      return -1;
     
    8484        path_buf[len-1] = 0;
    8585    }
    86   _chdir (old_dir);
     86  _chdir_os2 (old_dir);
    8787  if (dir != NULL)
    8888    strcpy (dir, path_buf);
Note: See TracChangeset for help on using the changeset viewer.