]> git.pld-linux.org Git - packages/dftpd.git/commitdiff
- build fix
authorJakub Bogusz <qboosh@pld-linux.org>
Tue, 26 Aug 2003 11:34:51 +0000 (11:34 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    dftpd-fix.patch -> 1.1

dftpd-fix.patch [new file with mode: 0644]

diff --git a/dftpd-fix.patch b/dftpd-fix.patch
new file mode 100644 (file)
index 0000000..97fa34a
--- /dev/null
@@ -0,0 +1,54 @@
+--- dftpd-1.3/dftpd.c.orig     Sun May 23 23:42:48 1999
++++ dftpd-1.3/dftpd.c  Tue Aug 26 13:22:35 2003
+@@ -18,9 +18,6 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+-#ifndef __USE_XOPEN
+-#define __USE_XOPEN
+-#endif
+ #include <unistd.h>
+ #include <ctype.h>
+ #include <errno.h>
+@@ -29,9 +26,6 @@
+ #include <netinet/in.h>
+ #include <arpa/inet.h>
+ #include <netdb.h>
+-#ifndef __USE_GNU
+-#define __USE_GNU
+-#endif
+ #include <string.h>
+ #include <sys/types.h>
+ #include <sys/socket.h>
+@@ -229,8 +223,8 @@
+       {
+          close_dataconn(datasock); datasock = -1;
+          writes("525 Connection rejected - ident/ip check failed\r\n");
+-         if(cfg.debuglevel >= 2) ftplog("AUTH","Cannot open data connection -
+-          ident/ip check failed"); return -1;
++         if(cfg.debuglevel >= 2) ftplog("AUTH","Cannot open data connection -"
++          " ident/ip check failed"); return -1;
+       }
+       gethname(&pasv_addr,cur_utmp.datahostname);
+    }
+--- dftpd-1.3/plugindk/defaultcmds.c.orig      Sat May 15 02:37:08 1999
++++ dftpd-1.3/plugindk/defaultcmds.c   Tue Aug 26 13:24:36 2003
+@@ -1,11 +1,5 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+-#ifndef __USE_GNU
+-#define __USE_GNU
+-#endif
+-#ifndef __USE_XOPEN
+-#define __USE_XOPEN
+-#endif
+ #include <unistd.h>
+ #include <string.h>
+ #include <sys/types.h>
+@@ -611,4 +605,4 @@
+       seteuid(0); setegid(0); 
+       writes("200 Superuser mode is ON\r\n");
+    }   
+-}
+\ No newline at end of file
++}
This page took 0.066739 seconds and 4 git commands to generate.