1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-01 22:05:08 +00:00
freebsd-ports/ftp/wu-ftpd+ipv6/files/patch-aa

31 lines
784 B
Plaintext
Raw Normal View History

--- src/ftpd.c.orig Thu Oct 14 23:41:47 1999
+++ src/ftpd.c Wed Jun 14 14:48:27 2000
@@ -1602,9 +1602,9 @@
/* Display s/key challenge where appropriate. */
if (pwd == NULL || skeychallenge(&skey, pwd->pw_name, sbuf))
- sprintf(buf, "Password required for %s.", name);
+ snprintf(buf, 128, "Password required for %s.", name);
else
- sprintf(buf, "%s %s for %s.", sbuf,
+ snprintf(buf, 128, "%s %s for %s.", sbuf,
pwok ? "allowed" : "required", name);
return (buf);
}
@@ -6346,7 +6346,6 @@
}
goto globfree;
}
- if ((st.st_mode & S_IFMT) != S_IFDIR) {
if (dout == NULL) {
dout = dataconn("file list", (off_t) - 1, "w");
if (dout == NULL)
@@ -6369,7 +6368,6 @@
byte_count_out++;
}
#endif
- }
}
if (dout != NULL) {