Changeset 55


Ignore:
Timestamp:
Jan 15, 2006, 2:34:04 AM (16 years ago)
Author:
Jari Häkkinen
Message:

Fixed bug that made file names starting with a '.' to be invisible in delete.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bin/rmdirhier.cc

    r51 r55  
    5353    while ((entry=readdir(dp)) != NULL) {
    5454      struct stat buf;
    55       if (entry->d_name[0] == '.')
     55      if ((std::string(entry->d_name) == ".") ||
     56          (std::string(entry->d_name) == ".."))
    5657        continue;
    5758      stat(entry->d_name,&buf);
Note: See TracChangeset for help on using the changeset viewer.