Changeset 3260 for trunk


Ignore:
Timestamp:
May 1, 2007, 3:11:27 PM (18 years ago)
Author:
bird
Message:

Ignore unlink failure like cygwin does. Fixes the array testcase.

File:
1 edited

Legend:

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

    r3231 r3260  
    419419    {
    420420      r = errno;
    421 #if defined (__CYGWIN__)
     421#if defined (__CYGWIN__) || defined (__OS2__)
    422422      /* Under CygWin 1.1.0, the unlink will fail if the file is
    423423         open. This hack will allow the previous action of silently
    424424         ignoring the error, but will still leave the file there. This
    425425         needs some kind of magic. */
     426      /* Ditto for OS/2. --bird */
    426427      if (r == EACCES)
    427428        return (fd2);
    428 #endif /* __CYGWIN__ */
     429#endif /* __CYGWIN__ || __OS2__ */
    429430      close (fd2);
    430431      free (filename);
Note: See TracChangeset for help on using the changeset viewer.