diff options
Diffstat (limited to 'ftp/cftp/files')
-rw-r--r-- | ftp/cftp/files/patch-ftp.c | 38 | ||||
-rw-r--r-- | ftp/cftp/files/patch-mkbind.c | 12 | ||||
-rw-r--r-- | ftp/cftp/files/patch-readrc.c | 11 |
3 files changed, 0 insertions, 61 deletions
diff --git a/ftp/cftp/files/patch-ftp.c b/ftp/cftp/files/patch-ftp.c deleted file mode 100644 index 50ea56189aa7..000000000000 --- a/ftp/cftp/files/patch-ftp.c +++ /dev/null @@ -1,38 +0,0 @@ ---- ftp.c.orig 2002-09-17 14:58:18 UTC -+++ ftp.c -@@ -311,7 +311,7 @@ directory * - rftp_list(char *path) - { - directory *dir; -- int fd; -+ int fd, resp; - FILE *f; - - if (ftp_mode('a') == -1 || ftp_cwd(path) == -1) -@@ -321,7 +321,7 @@ rftp_list(char *path) - return NULL; - - ftp_put("list"); -- if (ftp_resp() != 150) { -+ if ((resp=ftp_resp()) != 150 && resp != 125) { - close(fd); - dir = (directory *)malloc(sizeof(directory)); - dir->line = (direntry *)malloc(sizeof(direntry)); -@@ -379,7 +379,7 @@ ftp_cd(char *wd, int force) - void * - rftp_retr(char *file, int mode, long *startp, long *sizep) - { -- int fd; -+ int fd, resp; - char *dir, *name, *can, *p; - FILE *fin; - -@@ -400,7 +400,7 @@ rftp_retr(char *file, int mode, long *st - } - - ftp_put("retr %s", name); -- if (ftp_resp() != 150) { -+ if ((resp=ftp_resp()) != 150 && resp != 125) { - close(fd); - return NULL; - } diff --git a/ftp/cftp/files/patch-mkbind.c b/ftp/cftp/files/patch-mkbind.c deleted file mode 100644 index 77376a1908a1..000000000000 --- a/ftp/cftp/files/patch-mkbind.c +++ /dev/null @@ -1,12 +0,0 @@ -$OpenBSD: patch-mkbind_c,v 1.1 2003/04/15 15:50:11 avsm Exp $ ---- mkbind.c.orig 2002-09-17 11:46:23 UTC -+++ mkbind.c -@@ -86,7 +86,7 @@ int - main(int argc, char **argv) - { - FILE *fin, *fout; -- char line[4069], *p, *tok, **args; -+ char line[4096], *p, *tok, **args; - char tmp[128]; - struct binding *b; - int i, j, off, argoff, len; diff --git a/ftp/cftp/files/patch-readrc.c b/ftp/cftp/files/patch-readrc.c deleted file mode 100644 index d1a2577fac46..000000000000 --- a/ftp/cftp/files/patch-readrc.c +++ /dev/null @@ -1,11 +0,0 @@ ---- readrc.c.orig 2002-09-16 12:42:41 UTC -+++ readrc.c -@@ -46,7 +46,7 @@ readrc(char **userp, char **passp, char - char b[8192], *p, *tok, *q, *home; - char *user, *pass, *host, *port, *wdir; - -- if ((home=getenv("HOME")) == NULL) -+ if ((home=getenv("HOME")) == NULL || strlen(home) > sizeof(b)-9) - home = ""; - sprintf(b, "%s/.cftprc", home); - |