blob: 29d15f5c5ba42ed2c2157750e78e48145d7fb602 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
--- src/ftp.h.orig 2023-02-20 11:42:14 UTC
+++ src/ftp.h
@@ -29,11 +29,19 @@
#ifndef _FTP_INCLUDED
#define _FTP_INCLUDED
+#include <limits.h>
+#include <libutil.h>
+
extern char *version;
extern char *program;
-extern char progname[80];
+extern char progname[PATH_MAX];
+/* PID file */
+#define PIDFILE_DEFAULT "/var/run/ftpproxy.pid"
+extern char pidfile[PATH_MAX];
+extern struct pidfh *pfh;
+
extern int debug;
extern int extralog;
extern int bindport;
@@ -45,7 +53,7 @@ extern int acceptloop(int sock);
typedef struct _config {
- char configfile[200];
+ char configfile[PATH_MAX];
int standalone;
int timeout;
@@ -53,12 +61,12 @@ typedef struct _config {
int selectserver;
int allow_anyremote;
- char server[200];
+ char server[NI_MAXHOST];
char *serverlist;
- char acp[200];
- char ccp[200];
- char ctp[200];
+ char acp[PATH_MAX];
+ char ccp[PATH_MAX];
+ char ctp[PATH_MAX];
char varname[80];
int allow_blanks;
@@ -66,10 +74,10 @@ typedef struct _config {
int use_last_at;
int monitor;
int bsize;
- char xferlog[200];
+ char xferlog[PATH_MAX];
int numeric_only;
- char sourceip[200];
+ char sourceip[NI_MAXHOST];
unsigned int dataport;
} config_t;
|