Ignore:
Timestamp:
May 24, 2009, 7:51:24 AM (16 years ago)
Author:
Herwig Bauernfeind
Message:

Update Samba 3.3 branch to 3.3.3

File:
1 edited

Legend:

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

    r206 r223  
    336336                        p = path;
    337337                }
    338                
    339                 if (p[0] == '.' && p[1] != '.' && p[1] != 0) {
     338
     339                /* Only . and .. are not hidden. */
     340                if (p[0] == '.' && !((p[1] == '\0') ||
     341                                (p[1] == '.' && p[2] == '\0'))) {
    340342                        result |= aHIDDEN;
    341343                }
     
    388390                        p = path;
    389391                }
    390                
    391                 if (p[0] == '.' && p[1] != '.' && p[1] != 0) {
     392
     393                /* Only . and .. are not hidden. */
     394                if (p[0] == '.' && !((p[1] == '\0') ||
     395                                (p[1] == '.' && p[2] == '\0'))) {
    392396                        result |= aHIDDEN;
    393397                }
Note: See TracChangeset for help on using the changeset viewer.