diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-11-26 07:26:51 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-11-26 07:26:51 +0000 |
commit | c96e3b1c2c0606b62b6dd37c4e58d82c901bfd78 (patch) | |
tree | 3abc3e473ef3210f1db89156e49981c80061929a /lib | |
parent | a52d6a761b9afede5aea89b653e09803ab276862 (diff) |
remove the "YP server for domain %s not responding, still trying" code.
For years, it talked to stderr. That was wrong. Then it was converted
to opening /dev/tty, which is also wrong (pledge says so). Upon
reconsideration people in these more modern times have adapted to all
sorts of services not being available, so axe the alert and retry
silently.
ok beck
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/yp/yp_bind.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/lib/libc/yp/yp_bind.c b/lib/libc/yp/yp_bind.c index dff4f6c9ba9..f81974e6f2e 100644 --- a/lib/libc/yp/yp_bind.c +++ b/lib/libc/yp/yp_bind.c @@ -1,4 +1,4 @@ -/* $OpenBSD: yp_bind.c,v 1.25 2015/09/14 12:09:35 guenther Exp $ */ +/* $OpenBSD: yp_bind.c,v 1.26 2015/11/26 07:26:50 deraadt Exp $ */ /* * Copyright (c) 1992, 1993, 1996 Theo de Raadt <deraadt@theos.com> * All rights reserved. @@ -61,7 +61,6 @@ _yp_dobind(const char *dom, struct dom_binding **ypdb) pid_t gpid; CLIENT *client; int new = 0, r; - int count = 0; u_short port; /* @@ -191,19 +190,6 @@ trynet: r = clnt_call(client, YPBINDPROC_DOMAIN, xdr_domainname, &dom, xdr_ypbind_resp, &ypbr, tv); if (r != RPC_SUCCESS) { - if (new == 0 || count) { - int fd; - - fd = open(_PATH_TTY, - O_WRONLY | O_NONBLOCK | O_NOCTTY); - if (fd != -1) { - dprintf(fd, - "YP server for domain %s not responding, still trying\n", - dom); - close(fd); - } - } - count++; clnt_destroy(client); ysd->dom_vers = -1; goto again; |