2000-06-14 15:37:56 +00:00
|
|
|
--- 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);
|
|
|
|
}
|
2000-01-24 22:33:20 +00:00
|
|
|
@@ -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) {
|