getpwent.c (124432) | getpwent.c (126643) |
---|---|
1/*- 2 * Copyright (c) 2003 Networks Associates Technology, Inc. 3 * All rights reserved. 4 * 5 * This software was developed for the FreeBSD Project by 6 * Jacques A. Vidrine, Safeport Network Services, and Network 7 * Associates Laboratories, the Security Research Division of Network 8 * Associates, Inc. under DARPA/SPAWAR contract N66001-01-C-8035 --- 17 unchanged lines hidden (view full) --- 26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 * 32 */ 33#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2003 Networks Associates Technology, Inc. 3 * All rights reserved. 4 * 5 * This software was developed for the FreeBSD Project by 6 * Jacques A. Vidrine, Safeport Network Services, and Network 7 * Associates Laboratories, the Security Research Division of Network 8 * Associates, Inc. under DARPA/SPAWAR contract N66001-01-C-8035 --- 17 unchanged lines hidden (view full) --- 26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 * 32 */ 33#include <sys/cdefs.h> |
34__FBSDID("$FreeBSD: head/lib/libc/gen/getpwent.c 124432 2004-01-12 13:33:24Z nectar $"); | 34__FBSDID("$FreeBSD: head/lib/libc/gen/getpwent.c 126643 2004-03-05 08:10:19Z markm $"); |
35 36#include "namespace.h" 37#include <sys/param.h> 38#ifdef YP 39#include <rpc/rpc.h> 40#include <rpcsvc/yp_prot.h> 41#include <rpcsvc/ypclnt.h> 42#endif --- 1576 unchanged lines hidden (view full) --- 1619 case '-': 1620 switch (pw_name[1]) { 1621 case '\0': 1622 /* XXX Maybe syslog warning */ 1623 continue; 1624 case '@': 1625 setnetgrent(&pw_name[2]); 1626 while (getnetgrent(&host, &user, &domain) != | 35 36#include "namespace.h" 37#include <sys/param.h> 38#ifdef YP 39#include <rpc/rpc.h> 40#include <rpcsvc/yp_prot.h> 41#include <rpcsvc/ypclnt.h> 42#endif --- 1576 unchanged lines hidden (view full) --- 1619 case '-': 1620 switch (pw_name[1]) { 1621 case '\0': 1622 /* XXX Maybe syslog warning */ 1623 continue; 1624 case '@': 1625 setnetgrent(&pw_name[2]); 1626 while (getnetgrent(&host, &user, &domain) != |
1627 NULL) { | 1627 0) { |
1628 if (user != NULL && user[0] != '\0') 1629 compat_exclude(user, 1630 &st->exclude); 1631 } 1632 endnetgrent(); 1633 continue; 1634 default: 1635 compat_exclude(&pw_name[1], &st->exclude); --- 93 unchanged lines hidden --- | 1628 if (user != NULL && user[0] != '\0') 1629 compat_exclude(user, 1630 &st->exclude); 1631 } 1632 endnetgrent(); 1633 continue; 1634 default: 1635 compat_exclude(&pw_name[1], &st->exclude); --- 93 unchanged lines hidden --- |