=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/passwd/passwd.c,v retrieving revision 1.18 retrieving revision 1.19 diff -u -r1.18 -r1.19 --- src/usr.bin/passwd/passwd.c 2003/08/04 07:29:22 1.18 +++ src/usr.bin/passwd/passwd.c 2005/05/01 02:51:08 1.19 @@ -1,4 +1,4 @@ -/* $OpenBSD: passwd.c,v 1.18 2003/08/04 07:29:22 hin Exp $ */ +/* $OpenBSD: passwd.c,v 1.19 2005/05/01 02:51:08 deraadt Exp $ */ /* * Copyright (c) 1988 The Regents of the University of California. @@ -37,7 +37,7 @@ #ifndef lint /*static const char sccsid[] = "from: @(#)passwd.c 5.5 (Berkeley) 7/6/91";*/ -static const char rcsid[] = "$OpenBSD: passwd.c,v 1.18 2003/08/04 07:29:22 hin Exp $"; +static const char rcsid[] = "$OpenBSD: passwd.c,v 1.19 2005/05/01 02:51:08 deraadt Exp $"; #endif /* not lint */ #include @@ -84,6 +84,12 @@ #endif #ifdef YP use_yp = _yp_check(NULL); + if (use_yp) { + char *dom; + + yp_get_default_domain(&dom); + yp_unbind(dom); + } #endif /* Process args and options */