]> git.pld-linux.org Git - packages/dftpd.git/blob - dftpd-fix.patch
- tabs in preamble
[packages/dftpd.git] / dftpd-fix.patch
1 --- dftpd-1.3/dftpd.c.orig      Sun May 23 23:42:48 1999
2 +++ dftpd-1.3/dftpd.c   Tue Aug 26 13:22:35 2003
3 @@ -18,9 +18,6 @@
4  
5  #include <stdio.h>
6  #include <stdlib.h>
7 -#ifndef __USE_XOPEN
8 -#define __USE_XOPEN
9 -#endif
10  #include <unistd.h>
11  #include <ctype.h>
12  #include <errno.h>
13 @@ -29,9 +26,6 @@
14  #include <netinet/in.h>
15  #include <arpa/inet.h>
16  #include <netdb.h>
17 -#ifndef __USE_GNU
18 -#define __USE_GNU
19 -#endif
20  #include <string.h>
21  #include <sys/types.h>
22  #include <sys/socket.h>
23 @@ -229,8 +223,8 @@
24        {
25           close_dataconn(datasock); datasock = -1;
26           writes("525 Connection rejected - ident/ip check failed\r\n");
27 -         if(cfg.debuglevel >= 2) ftplog("AUTH","Cannot open data connection -
28 -          ident/ip check failed"); return -1;
29 +         if(cfg.debuglevel >= 2) ftplog("AUTH","Cannot open data connection -"
30 +          " ident/ip check failed"); return -1;
31        }
32        gethname(&pasv_addr,cur_utmp.datahostname);
33     }
34 --- dftpd-1.3/plugindk/defaultcmds.c.orig       Sat May 15 02:37:08 1999
35 +++ dftpd-1.3/plugindk/defaultcmds.c    Tue Aug 26 13:24:36 2003
36 @@ -1,11 +1,5 @@
37  #include <stdio.h>
38  #include <stdlib.h>
39 -#ifndef __USE_GNU
40 -#define __USE_GNU
41 -#endif
42 -#ifndef __USE_XOPEN
43 -#define __USE_XOPEN
44 -#endif
45  #include <unistd.h>
46  #include <string.h>
47  #include <sys/types.h>
48 @@ -611,4 +605,4 @@
49        seteuid(0); setegid(0); 
50        writes("200 Superuser mode is ON\r\n");
51     }   
52 -}
53 \ No newline at end of file
54 +}
This page took 0.068939 seconds and 3 git commands to generate.