-/* $OpenBSD: getgrent.c,v 1.48 2019/07/02 15:54:05 deraadt Exp $ */
+/* $OpenBSD: getgrent.c,v 1.49 2022/07/17 03:10:47 deraadt Exp $ */
/*
* Copyright (c) 1989, 1993
* The Regents of the University of California. All rights reserved.
static int
start_gr(void)
{
-#ifdef YP
- int saved_errno = errno;
-#endif
-
if (_gr_fp) {
rewind(_gr_fp);
#ifdef YP
return(1);
}
-#ifdef YP
- /*
- * Hint to the kernel that a passwd database operation is happening.
- */
- saved_errno = errno;
- (void)access("/var/run/ypbind.lock", R_OK);
- errno = saved_errno;
-#endif
-
return((_gr_fp = fopen(_PATH_GROUP, "re")) ? 1 : 0);
}
-/* $OpenBSD: getgrouplist.c,v 1.28 2019/07/02 15:54:05 deraadt Exp $ */
+/* $OpenBSD: getgrouplist.c,v 1.29 2022/07/17 03:10:47 deraadt Exp $ */
/*
* Copyright (c) 2008 Ingo Schwarze <schwarze@usta.de>
* Copyright (c) 1991, 1993
int *skipyp = &foundyp;
extern struct group *_getgrent_yp(int *);
struct group *grp;
-#ifdef YP
- int saved_errno;
-#endif
/*
* install primary group
}
groups[ngroups++] = agroup;
-#ifdef YP
- /*
- * Hint to the kernel that a passwd database operation is happening.
- */
- saved_errno = errno;
- (void)access("/var/run/ypbind.lock", R_OK);
- errno = saved_errno;
-#endif
-
/*
* Scan the group file to find additional groups.
*/
-/* $OpenBSD: getpwent.c,v 1.64 2021/12/07 18:13:45 deraadt Exp $ */
+/* $OpenBSD: getpwent.c,v 1.65 2022/07/17 03:10:47 deraadt Exp $ */
/*
* Copyright (c) 2008 Theo de Raadt
* Copyright (c) 1988, 1993
int saved_errno = errno;
#ifdef YP
- /*
- * Hint to the kernel that a passwd database operation is happening.
- */
- (void)access("/var/run/ypbind.lock", R_OK);
- errno = saved_errno;
-
__ypmode = YPMODE_NONE;
__getpwent_has_yppw = -1;
#endif