diff options
author | brian <brian@FreeBSD.org> | 1997-12-18 00:28:36 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1997-12-18 00:28:36 +0000 |
commit | 681e86adc4f5c4fd59b2bc2ee2e991275bc17375 (patch) | |
tree | ef567ebddf761564ee43868920d194822666b809 /usr.sbin/ppp/command.c | |
parent | 7903f9af9432f5105f3f04bda2ee313b2efdc84f (diff) | |
download | FreeBSD-src-681e86adc4f5c4fd59b2bc2ee2e991275bc17375.zip FreeBSD-src-681e86adc4f5c4fd59b2bc2ee2e991275bc17375.tar.gz |
Don't log the actual password when command-logging
"passwd xxxx".
Diffstat (limited to 'usr.sbin/ppp/command.c')
-rw-r--r-- | usr.sbin/ppp/command.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/usr.sbin/ppp/command.c b/usr.sbin/ppp/command.c index 78441f8..dc10681 100644 --- a/usr.sbin/ppp/command.c +++ b/usr.sbin/ppp/command.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: command.c,v 1.111 1997/12/17 00:19:22 brian Exp $ + * $Id: command.c,v 1.112 1997/12/17 21:21:38 brian Exp $ * */ #include <sys/param.h> @@ -742,10 +742,17 @@ static int arghidden(int argc, char const *const *argv, int n) { /* Is arg n of the given command to be hidden from the log ? */ + + /* set authkey xxxxx */ + /* set key xxxxx */ if (n == 2 && !strncasecmp(argv[0], "se", 2) && (!strncasecmp(argv[1], "authk", 5) || !strncasecmp(argv[1], "ke", 2))) return 1; + /* passwd xxxxx */ + if (n == 1 && !strncasecmp(argv[0], "p", 1)) + return 1; + return 0; } |