diff --git a/mozilla/xpcom/io/nsFileSpecUnix.cpp b/mozilla/xpcom/io/nsFileSpecUnix.cpp index 3c3cfde5020..1102debbb2b 100644 --- a/mozilla/xpcom/io/nsFileSpecUnix.cpp +++ b/mozilla/xpcom/io/nsFileSpecUnix.cpp @@ -191,7 +191,10 @@ PRBool nsFileSpec::IsHidden() const char *leafname = GetLeafName(); if (nsnull != leafname) { - if ((!strcmp(leafname, ".")) || (!strcmp(leafname, ".."))) + // rjc: don't return ".", "..", or any file/directory that begins with a "." + + /* if ((!strcmp(leafname, ".")) || (!strcmp(leafname, ".."))) */ + if (leafname[0] == '.') { hidden = PR_TRUE; }