projects
/
oweals
/
cde.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Adapt dtlogin/config/_common.ksh.src for OpenBSD:
[oweals/cde.git]
/
cde
/
programs
/
dtlogin
/
util.c
diff --git
a/cde/programs/dtlogin/util.c
b/cde/programs/dtlogin/util.c
index 0a520323435e6e18c1538a5efb646e50e9beae0a..accb0ff69f5e2462e82cf763ac700caa4445059b 100644
(file)
--- 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;
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;
/*
char *pch;
/*
@@
-1092,6
+1093,10
@@
ScanNLSDir(char *dirname)
{
locale = dp->d_name;
{
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));
{
if (locale[0] != '.' &&
LANGLISTSIZE > (int) (strlen(languageList)+strlen(locale)+2));
{