Adapt dtlogin/config/_common.ksh.src for OpenBSD:
[oweals/cde.git] / cde / programs / dtlogin / util.c
index 0a520323435e6e18c1538a5efb646e50e9beae0a..accb0ff69f5e2462e82cf763ac700caa4445059b 100644 (file)
@@ -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));
            {