Ignore:
Timestamp:
May 27, 2009, 11:39:15 AM (16 years ago)
Author:
Herwig Bauernfeind
Message:

Update 3.2 branch to 3.2.9

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.2.x/source/smbd/dosmode.c

    r232 r233  
    335335                        p = path;
    336336                }
    337                
    338                 if (p[0] == '.' && p[1] != '.' && p[1] != 0) {
     337
     338                /* Only . and .. are not hidden. */
     339                if (p[0] == '.' && !((p[1] == '\0') ||
     340                                (p[1] == '.' && p[2] == '\0'))) {
    339341                        result |= aHIDDEN;
    340342                }
     
    387389                        p = path;
    388390                }
    389                
    390                 if (p[0] == '.' && p[1] != '.' && p[1] != 0) {
     391
     392                /* Only . and .. are not hidden. */
     393                if (p[0] == '.' && !((p[1] == '\0') ||
     394                                (p[1] == '.' && p[2] == '\0'))) {
    391395                        result |= aHIDDEN;
    392396                }
Note: See TracChangeset for help on using the changeset viewer.