fd433cb2ea
Unforbid because known vulnerabilities have been fixed. Take over maintainership. Approved by: obrien (previous maintainer)
27 lines
806 B
Plaintext
27 lines
806 B
Plaintext
--- src/windiv.c.orig Mon Jan 31 21:12:08 2000
|
|
+++ src/windiv.c Sun Jan 27 19:05:05 2002
|
|
@@ -19,6 +19,7 @@
|
|
#include "rcsid.h"
|
|
RCSID("$Id: windiv.c,v 1.2 2000/01/27 11:25:31 misiek Exp $")
|
|
|
|
+#include <sys/types.h>
|
|
#include <dirent.h>
|
|
#include <sys/stat.h>
|
|
#include "port.h"
|
|
@@ -251,8 +252,14 @@
|
|
|
|
/* get regular files */
|
|
dirlist[nCnt].d_ino = dirent->d_ino;
|
|
- dirlist[nCnt].d_off = dirent->d_off;
|
|
dirlist[nCnt].d_reclen = dirent->d_reclen;
|
|
+#if (defined(BSD) && (BSD >= 199306))
|
|
+ dirlist[nCnt].d_type = dirent->d_type;
|
|
+ dirlist[nCnt].d_namlen = dirent->d_namlen;
|
|
+#else
|
|
+ dirlist[nCnt].d_off = dirent->d_off;
|
|
+#endif
|
|
+
|
|
strcpy(dirlist[nCnt].d_name, dirent->d_name );
|
|
nMaxWidth = max(nMaxWidth, strlen(dirent->d_name));
|
|
nCnt++;
|