summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorniklas <>1999-05-30 14:20:29 +0000
committerniklas <>1999-05-30 14:20:29 +0000
commit793893d418c9fc88d4515a1edecf2984bf2a99f6 (patch)
tree932b32aabc274ff935b344c41485e56c02a81f09
parent6563b2b973d8d8a94e467636dc0c78305c3c8272 (diff)
downloadopenbsd-793893d418c9fc88d4515a1edecf2984bf2a99f6.tar.gz
openbsd-793893d418c9fc88d4515a1edecf2984bf2a99f6.tar.bz2
openbsd-793893d418c9fc88d4515a1edecf2984bf2a99f6.zip
Revertion of last change, which was due to emacs' stupid idea
of keeping the "*Shell Command Output*" buffer's wd from its creation instead of using the last command's wd!!!!
-rw-r--r--src/lib/libc/net/gethostnamadr.c10
-rw-r--r--src/lib/libc/net/getnetnamadr.c8
2 files changed, 3 insertions, 15 deletions
diff --git a/src/lib/libc/net/gethostnamadr.c b/src/lib/libc/net/gethostnamadr.c
index efd1ddece7..495ca49089 100644
--- a/src/lib/libc/net/gethostnamadr.c
+++ b/src/lib/libc/net/gethostnamadr.c
@@ -52,7 +52,7 @@
52 */ 52 */
53 53
54#if defined(LIBC_SCCS) && !defined(lint) 54#if defined(LIBC_SCCS) && !defined(lint)
55static char rcsid[] = "$OpenBSD: gethostnamadr.c,v 1.33 1999/05/30 14:06:07 niklas Exp $"; 55static char rcsid[] = "$OpenBSD: gethostnamadr.c,v 1.34 1999/05/30 14:20:29 niklas Exp $";
56#endif /* LIBC_SCCS and not lint */ 56#endif /* LIBC_SCCS and not lint */
57 57
58#include <sys/param.h> 58#include <sys/param.h>
@@ -282,11 +282,7 @@ getanswer(answer, anslen, qname, qtype)
282 } 282 }
283 if (qtype == T_PTR && type == T_CNAME) { 283 if (qtype == T_PTR && type == T_CNAME) {
284 n = dn_expand(answer->buf, eom, cp, tbuf, sizeof tbuf); 284 n = dn_expand(answer->buf, eom, cp, tbuf, sizeof tbuf);
285#ifdef USE_RESOLV_NAME_OK
286 if ((n < 0) || !res_hnok(tbuf)) { 285 if ((n < 0) || !res_hnok(tbuf)) {
287#else
288 if ((n < 0) || !_hokchar(tbuf)) {
289#endif
290 had_error++; 286 had_error++;
291 continue; 287 continue;
292 } 288 }
@@ -320,11 +316,7 @@ getanswer(answer, anslen, qname, qtype)
320 continue; /* XXX - had_error++ ? */ 316 continue; /* XXX - had_error++ ? */
321 } 317 }
322 n = dn_expand(answer->buf, eom, cp, bp, buflen); 318 n = dn_expand(answer->buf, eom, cp, bp, buflen);
323#ifdef USE_RESOLV_NAME_OK
324 if ((n < 0) || !res_hnok(bp)) { 319 if ((n < 0) || !res_hnok(bp)) {
325#else
326 if ((n < 0) || !_hokchar(bp)) {
327#endif
328 had_error++; 320 had_error++;
329 break; 321 break;
330 } 322 }
diff --git a/src/lib/libc/net/getnetnamadr.c b/src/lib/libc/net/getnetnamadr.c
index 0f8ef449bb..65a6bda900 100644
--- a/src/lib/libc/net/getnetnamadr.c
+++ b/src/lib/libc/net/getnetnamadr.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: getnetnamadr.c,v 1.11 1999/05/30 14:06:08 niklas Exp $ */ 1/* $OpenBSD: getnetnamadr.c,v 1.12 1999/05/30 14:20:29 niklas Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 1997, Jason Downs. All rights reserved. 4 * Copyright (c) 1997, Jason Downs. All rights reserved.
@@ -77,7 +77,7 @@ static char sccsid[] = "@(#)getnetbyaddr.c 8.1 (Berkeley) 6/4/93";
77static char sccsid_[] = "from getnetnamadr.c 1.4 (Coimbra) 93/06/03"; 77static char sccsid_[] = "from getnetnamadr.c 1.4 (Coimbra) 93/06/03";
78static char rcsid[] = "$From: getnetnamadr.c,v 8.7 1996/08/05 08:31:35 vixie Exp $"; 78static char rcsid[] = "$From: getnetnamadr.c,v 8.7 1996/08/05 08:31:35 vixie Exp $";
79#else 79#else
80static char rcsid[] = "$OpenBSD: getnetnamadr.c,v 1.11 1999/05/30 14:06:08 niklas Exp $"; 80static char rcsid[] = "$OpenBSD: getnetnamadr.c,v 1.12 1999/05/30 14:20:29 niklas Exp $";
81#endif 81#endif
82#endif /* LIBC_SCCS and not lint */ 82#endif /* LIBC_SCCS and not lint */
83 83
@@ -192,11 +192,7 @@ getnetanswer(answer, anslen, net_i)
192 GETSHORT(n, cp); 192 GETSHORT(n, cp);
193 if (class == C_IN && type == T_PTR) { 193 if (class == C_IN && type == T_PTR) {
194 n = dn_expand(answer->buf, eom, cp, bp, buflen); 194 n = dn_expand(answer->buf, eom, cp, bp, buflen);
195#ifdef USE_RESOLV_NAME_OK
196 if ((n < 0) || !res_hnok(bp)) { 195 if ((n < 0) || !res_hnok(bp)) {
197#else
198 if ((n < 0) || !_hokchar(bp)) {
199#endif
200 cp += n; 196 cp += n;
201 return (NULL); 197 return (NULL);
202 } 198 }