projects
/
idzebra-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9eae02
)
Avoid non-portable dirent check
author
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 30 Sep 2004 08:30:05 +0000
(08:30 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 30 Sep 2004 08:30:05 +0000
(08:30 +0000)
recctrl/recctrl.c
patch
|
blob
|
history
diff --git
a/recctrl/recctrl.c
b/recctrl/recctrl.c
index
5205cd3
..
9415233
100644
(file)
--- a/
recctrl/recctrl.c
+++ b/
recctrl/recctrl.c
@@
-1,4
+1,4
@@
-/* $Id: recctrl.c,v 1.11 2004-09-30 07:23:15 adam Exp $
+/* $Id: recctrl.c,v 1.12 2004-09-30 08:30:05 adam Exp $
Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004
Index Data Aps
@@
-106,8
+106,7
@@
RecTypeClass recTypeClass_create (Res res, NMEM nmem)
while ((de = readdir(dir)))
{
size_t dlen = strlen(de->d_name);
- if ((de->d_type == DT_REG || de->d_type == DT_LNK)
- && dlen >= 5 &&
+ if (dlen >= 5 &&
!memcmp(de->d_name, "mod-", 4) &&
!strcmp(de->d_name + dlen - 3, ".so"))
{