mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +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
|
Contents: Web server program for Electronic Logbook ELOG
|
||||||
|
|
||||||
$Log$
|
$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
|
Revision 2.47 2002/07/25 09:22:05 midas
|
||||||
Removed scandir() for Solaris compatibility
|
Removed scandir() for Solaris compatibility
|
||||||
|
|
||||||
@ -1397,6 +1400,7 @@ INT ss_file_find(char *path, char *pattern, char **plist)
|
|||||||
#ifdef OS_UNIX
|
#ifdef OS_UNIX
|
||||||
DIR *dir_pointer;
|
DIR *dir_pointer;
|
||||||
struct dirent *dp;
|
struct dirent *dp;
|
||||||
|
int i;
|
||||||
|
|
||||||
if ((dir_pointer = opendir(path)) == NULL)
|
if ((dir_pointer = opendir(path)) == NULL)
|
||||||
return 0;
|
return 0;
|
||||||
@ -1414,6 +1418,7 @@ INT ss_file_find(char *path, char *pattern, char **plist)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
closedir(dir_pointer);
|
closedir(dir_pointer);
|
||||||
|
return i;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef OS_WINNT
|
#ifdef OS_WINNT
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user