X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=cde%2Fprograms%2Fdtlogin%2Futil.c;h=accb0ff69f5e2462e82cf763ac700caa4445059b;hb=aa470d2e3adede4d625a843a14ab663587645c1a;hp=0a520323435e6e18c1538a5efb646e50e9beae0a;hpb=c884521619ded86baea5e0a74c8d0d2234c232fe;p=oweals%2Fcde.git diff --git a/cde/programs/dtlogin/util.c b/cde/programs/dtlogin/util.c index 0a520323..accb0ff6 100644 --- a/cde/programs/dtlogin/util.c +++ b/cde/programs/dtlogin/util.c @@ -679,7 +679,8 @@ static int MatchesFileSuffix(char *filename, char *suffix) { int retval = 0; -#if defined(_AIX) || defined(SVR4) || defined (__osf__) || defined(linux) +#if defined(_AIX) || defined(SVR4) || defined (__osf__) || defined(linux) || \ + defined(CSRG_BASED) char *pch; /* @@ -1092,6 +1093,10 @@ ScanNLSDir(char *dirname) { locale = dp->d_name; + if ( (strcmp(dp->d_name, ".") == 0) || + (strcmp(dp->d_name, "..") == 0) ) + continue; + if (locale[0] != '.' && LANGLISTSIZE > (int) (strlen(languageList)+strlen(locale)+2)); {