Ticket #5431: patch

File patch, 440 bytes (added by stpere, 13 years ago)
  • src/bin/diffutils/src/diff.c

     
    11691169  for (f = 0; f < 2; f++)
    11701170    {
    11711171      int e = ERRNO_DECODE (cmp.file[f].desc);
    1172       if (0 <= e)
     1172      if (e < 0 && e != NONEXISTENT && e != UNOPENED)
    11731173    {
    11741174      errno = e;
    11751175      perror_with_name (cmp.file[f].name);