| Server IP : 82.208.35.60 / Your IP : 216.73.216.89 Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31 System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64 User : studiokobylisy_cz ( 1008) PHP Version : 7.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/ports/ftp/pftpd/files/ |
Upload File : |
--- plib/dirlist.c.orig 2013-07-04 11:10:49 UTC
+++ plib/dirlist.c
@@ -66,7 +66,11 @@ dirent_dup(const struct dirent *dep)
n_dep = a_malloc(len, "struct dirent");
memcpy(n_dep, dep, len);
#else
+# ifdef __DragonFly__
+ n_dep = a_malloc(len = _DIRENT_RECLEN(dep->d_namlen), "struct dirent");
+# else
n_dep = a_malloc(len = dep->d_reclen, "struct dirent");
+# endif
#endif
memcpy(n_dep, dep, len);
@@ -91,8 +95,12 @@ dirent_alloc(ino_t ino, const char *name
dp = a_malloc(sizeof(*dp)+len, "struct dirent");
dp->d_ino = ino;
+#ifdef linux
dp->d_off = 0;
+#endif /* linux */
+#ifndef __DragonFly__
dp->d_reclen = len;
+#endif
strcpy(dp->d_name, name);
return dp;