summaryrefslogtreecommitdiff
path: root/lib/libc/yp/ypinternal.h
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2022-07-17 03:08:59 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2022-07-17 03:08:59 +0000
commit1b48033b1fcfbbdd0694a680a9b820228fbfbbb5 (patch)
tree451d245722735f7c7ab76f155b877c8e9bee9b03 /lib/libc/yp/ypinternal.h
parent4baebeae7a95555101f113ff20dab1319a66e580 (diff)
Rather than opening the binding file, checking for advisory lock, reading a
piece of it for the address, opening a socket, and providing the address to the RPC clnt layer.. do all these steps with the magic system call ypconnect(2) which performs these steps without other system calls, and provides a socket which is not readily abuseable for other purposes. ok jmatthew, miod
Diffstat (limited to 'lib/libc/yp/ypinternal.h')
-rw-r--r--lib/libc/yp/ypinternal.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libc/yp/ypinternal.h b/lib/libc/yp/ypinternal.h
index 0b4e46461c4..7be608d812c 100644
--- a/lib/libc/yp/ypinternal.h
+++ b/lib/libc/yp/ypinternal.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ypinternal.h,v 1.12 2022/07/17 03:04:27 deraadt Exp $ */
+/* $OpenBSD: ypinternal.h,v 1.13 2022/07/17 03:08:58 deraadt Exp $ */
/*
* Copyright (c) 1992, 1993, 1996 Theo de Raadt <deraadt@theos.com>
@@ -42,7 +42,6 @@ struct dom_binding {
};
#define BINDINGDIR "/var/yp/binding"
-#define YPBINDLOCK "/var/run/ypbind.lock"
__BEGIN_HIDDEN_DECLS
extern struct dom_binding *_ypbindlist;