Changeset 515 for trunk/dll


Ignore:
Timestamp:
Nov 2, 2006, 9:49:07 AM (19 years ago)
Author:
root
Message:

Stubby - correct . and .. detect

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/flesh.c

    r340 r515  
    1414  24 Oct 05 SHL Delete obsolete code
    1515  22 Jul 06 SHL Check more run time errors
     16  19 Oct 06 SHL Stubby - correct . and .. detect
    1617
    1718***********************************************************************/
     
    369370        }
    370371      }
    371       if(*pffb->achName &&
    372          (includefiles || (pffb->attrFile & FILE_DIRECTORY)) &&
    373          (*pffb->achName != '.' || (pffb->achName[1] &&
    374           pffb->achName[1] != '.'))) {
     372      if (*pffb->achName &&
     373          (includefiles || (pffb->attrFile & FILE_DIRECTORY)) &&
     374          // Skip . and ..
     375          (pffb->achName[0] != '.' ||
     376           (pffb->achName[1] &&
     377            (pffb->achName[1] != '.' || pffb->achName[2])))) {
    375378        DosFindClose(hDir);
    376379        isadir = TRUE;
     
    450453          }
    451454        }
    452         if(*pffb->achName &&
    453            (includefiles || (pffb->attrFile & FILE_DIRECTORY)) &&
    454            (*pffb->achName != '.' || (pffb->achName[1] &&
    455             pffb->achName[1] != '.'))) {
     455        if (*pffb->achName &&
     456            (includefiles || (pffb->attrFile & FILE_DIRECTORY)) &&
     457            // Skip . and ..
     458            (pffb->achName[0] != '.' ||
     459             (pffb->achName[1] && (pffb->achName[1] != '.' || pffb->achName[2])))) {
    456460          isadir = TRUE;
    457461          break;
Note: See TracChangeset for help on using the changeset viewer.