bin/98625: ypserv ignores the -n option (it always acts like
-n has been specified)
PaulFM
paulfm at me.umn.edu
Wed Jun 7 13:43:55 PDT 2006
The following reply was made to PR bin/98625; it has been noted by GNATS.
From: PaulFM <paulfm at me.umn.edu>
To: bug-followup at FreeBSD.org
Cc:
Subject: Re: bin/98625: ypserv ignores the -n option (it always acts like
-n has been specified)
Date: Wed, 07 Jun 2006 12:46:37 -0500
Looks like a problem with parenthesis (precedence) - or it could be a bug in
the FREEBSD C compiler. I added 2 sets of parenthesis and now it works!
diff -u yp_server.c ORIG/yp_server.c
------------------------------------------------------------------------
--- yp_server.c Wed Jun 7 12:30:42 2006
+++ ORIG/yp_server.c Wed Jun 7 12:29:48 2006
@@ -164,11 +164,11 @@
*/
#ifdef DB_CACHE
- if ((result.stat != YP_TRUE) &&
+ if (result.stat != YP_TRUE &&
(yp_testflag(argp->map, argp->domain, YP_INTERDOMAIN) ||
((strstr(argp->map, "hosts") || strstr(argp->map, "ipnodes")) && do
_dns))) {
#else
- if (do_dns && (result.stat != YP_TRUE) &&
+ if (do_dns && result.stat != YP_TRUE &&
(strstr(argp->map, "hosts") || strstr(argp->map, "ipnodes"))) {
#endif
char nbuf[YPMAXRECORD];
------------------------------------------------------------------------
--
---------------------------------------------------------------------
The views and opinions expressed above are strictly
those of the author(s). The content of this message has
not been reviewed nor approved by any entity whatsoever.
---------------------------------------------------------------------
Paul F. Markfort Info/Web: http://www.menet.umn.edu/~paulfm
---------------------------------------------------------------------
More information about the freebsd-bugs
mailing list