From 629de3e1aa28bc9a6dc19a5659c7c635304c4d39 Mon Sep 17 00:00:00 2001 From: Juraj Lutter Date: Thu, 13 Mar 2025 12:18:09 +0100 Subject: ftp/ftpproxy: Minor cosmetic changes Add rc.d script and option to use PID file. Switch to DISTVERSION. Add license information. PR: 269722 Approved by: maintainer timeout (3+ weeks) --- ftp/ftpproxy/files/patch-src_ftp.c | 39 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 ftp/ftpproxy/files/patch-src_ftp.c (limited to 'ftp/ftpproxy/files/patch-src_ftp.c') diff --git a/ftp/ftpproxy/files/patch-src_ftp.c b/ftp/ftpproxy/files/patch-src_ftp.c new file mode 100644 index 000000000000..8d5796197ba2 --- /dev/null +++ b/ftp/ftpproxy/files/patch-src_ftp.c @@ -0,0 +1,39 @@ +--- src/ftp.c.orig 2004-07-30 12:52:12 UTC ++++ src/ftp.c +@@ -115,7 +115,7 @@ ftpcmd_t cmdtab[] = { + + unsigned get_interface_info(int pfd, char *ip, int max) + { +- int size; ++ socklen_t size; + unsigned int port; + struct sockaddr_in saddr; + +@@ -133,7 +133,7 @@ unsigned get_interface_info(int pfd, char *ip, int max + + int get_client_info(ftp_t *x, int pfd) + { +- int size; ++ socklen_t size; + struct sockaddr_in saddr; + struct in_addr *addr; + struct hostent *hostp = NULL; +@@ -274,7 +274,8 @@ int getc_fd(ftp_t *x, int fd) + } + else if (FD_ISSET(x->ch.active, &available)) { + if (x->ch.state == PORT_LISTEN) { +- int sock, adrlen; ++ int sock; ++ socklen_t adrlen; + struct sockaddr_in adr; + + earlyreported = 0; +@@ -1823,7 +1824,7 @@ int proxy_request(config_t *config) + syslog(LOG_NOTICE, "%s %s: %ld bytes", x->ch.command, x->ch.filename, x->ch.bytes); + + if (x->xlfp != NULL) { +- unsigned long now; ++ time_t now; + char date[80]; + + /* -- cgit v1.2.3