diff options
| author | Jordan K. Hubbard <jkh@FreeBSD.org> | 1996-11-03 03:11:57 +0000 |
|---|---|---|
| committer | Jordan K. Hubbard <jkh@FreeBSD.org> | 1996-11-03 03:11:57 +0000 |
| commit | 2b5209acaa23577bbfab1d2a433ddd99439e62b9 (patch) | |
| tree | cc4282f5921382504827a0a40a71a52d3d383a4c | |
| parent | bb6382fae2da7a1d5ba046f628a6cee698255f17 (diff) | |
Notes
| -rw-r--r-- | usr.bin/passwd/Makefile | 4 | ||||
| -rw-r--r-- | usr.bin/passwd/local_passwd.c | 9 |
2 files changed, 10 insertions, 3 deletions
diff --git a/usr.bin/passwd/Makefile b/usr.bin/passwd/Makefile index b5d7a3c1402f..247e23c32226 100644 --- a/usr.bin/passwd/Makefile +++ b/usr.bin/passwd/Makefile @@ -1,5 +1,5 @@ # From: @(#)Makefile 8.3 (Berkeley) 4/2/94 -# $Id: Makefile,v 1.18 1995/09/14 21:02:16 gibbs Exp $ +# $Id: Makefile,v 1.19 1996/02/23 16:08:23 wpaul Exp $ PROG= passwd SRCS= local_passwd.c yppasswd_private_xdr.c yppasswd_comm.c yp_passwd.c \ @@ -13,7 +13,7 @@ LDADD= -lcrypt -lrpcsvc CFLAGS+= -DCRYPT -DYP -I. -I${.CURDIR} -I${.CURDIR}/../../usr.sbin/vipw \ -I${.CURDIR}/../../usr.bin/chpass -I${.CURDIR}/../../libexec/ypxfr \ - -I${.CURDIR}/../../usr.sbin/rpc.yppasswdd -Dyp_error=warnx + -I${.CURDIR}/../../usr.sbin/rpc.yppasswdd -Dyp_error=warnx -DLOGGING SRCS+= ypxfr_misc.c yp_clnt.c yppasswd_clnt.c diff --git a/usr.bin/passwd/local_passwd.c b/usr.bin/passwd/local_passwd.c index 73ec1f837906..04b78dd80fec 100644 --- a/usr.bin/passwd/local_passwd.c +++ b/usr.bin/passwd/local_passwd.c @@ -30,7 +30,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: local_passwd.c,v 1.8 1995/12/16 09:45:12 markm Exp $ + * $Id: local_passwd.c,v 1.9 1996/07/01 19:38:24 guido Exp $ */ #ifndef lint @@ -56,6 +56,10 @@ static const char sccsid[] = "@(#)local_passwd.c 8.3 (Berkeley) 4/2/94"; #include <pw_yp.h> #endif +#ifdef LOGGING +#include <syslog.h> +#endif + #include "extern.h" static uid_t uid; @@ -178,5 +182,8 @@ local_passwd(uname) if (!pw_mkdb(uname)) pw_error((char *)NULL, 0, 1); +#ifdef LOGGING + syslog(LOG_DEBUG, "user %s changed their local password\n", uname); +#endif return (0); } |
