mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-10-01 05:05:19 +00:00
Fixed bug with ss_find_file under unix
SVN revision: 182
This commit is contained in:
parent
11937112e2
commit
698ae68b02
5
elogd.c
5
elogd.c
@ -6,6 +6,9 @@
|
||||
Contents: Web server program for Electronic Logbook ELOG
|
||||
|
||||
$Log$
|
||||
Revision 2.48 2002/07/25 15:37:26 midas
|
||||
Fixed bug with ss_find_file under unix
|
||||
|
||||
Revision 2.47 2002/07/25 09:22:05 midas
|
||||
Removed scandir() for Solaris compatibility
|
||||
|
||||
@ -1397,6 +1400,7 @@ INT ss_file_find(char *path, char *pattern, char **plist)
|
||||
#ifdef OS_UNIX
|
||||
DIR *dir_pointer;
|
||||
struct dirent *dp;
|
||||
int i;
|
||||
|
||||
if ((dir_pointer = opendir(path)) == NULL)
|
||||
return 0;
|
||||
@ -1414,6 +1418,7 @@ INT ss_file_find(char *path, char *pattern, char **plist)
|
||||
}
|
||||
}
|
||||
closedir(dir_pointer);
|
||||
return i;
|
||||
#endif
|
||||
|
||||
#ifdef OS_WINNT
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user