freebsd-ports/ftp/pftpd/files/patch-plib_dirlist.c
Jean-Yves Lefort 4cd3b4e8d1 - Update to 1.0.1
- Add a mirror site, since the primary site is temporarily unreachable
- Remove RESTRICTED, as the license now allows redistribution

PR:		ports/81411
Submitted by:	Johan van Selst <johans@stack.nl>
2005-05-25 07:35:19 +00:00

12 lines
326 B
C

--- plib/dirlist.c.orig Tue Feb 1 10:43:35 2005
+++ plib/dirlist.c Mon May 23 18:35:47 2005
@@ -80,7 +80,9 @@
len = strlen(name);
dp = a_malloc(sizeof(*dp)+len, "struct dirent");
dp->d_ino = ino;
+#ifdef linux
dp->d_off = 0;
+#endif /* linux */
dp->d_reclen = len;
strcpy(dp->d_name, name);