+Thu Mar 5 13:59:47 1998 Dan Winship <danw@mit.edu>
+
+ * ftpcmd.y (getline): Don't syslog passwords! (or newlines)
+
Tue Feb 24 21:34:34 1998 Tom Yu <tlyu@mit.edu>
* ftpcmd.y: Add production "nonguest" to catch things that
}
#endif /* KERBEROS */
- if (debug)
- syslog(LOG_DEBUG, "command: <%s>(%d)", s, strlen(s));
+ if (debug) {
+ if (!strncmp(s, "PASS ", 5) && !guest)
+ syslog(LOG_DEBUG, "command: <PASS XXX>");
+ else
+ syslog(LOG_DEBUG, "command: <%.*s>(%d)",
+ strlen(s) - 2, s, strlen(s));
+ }
return (s);
}