Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/ypbind Don't store the default domain name in a glo...



details:   https://anonhg.NetBSD.org/src/rev/09ed561d91ed
branches:  trunk
changeset: 329808:09ed561d91ed
user:      dholland <dholland%NetBSD.org@localhost>
date:      Tue Jun 10 17:18:02 2014 +0000

description:
Don't store the default domain name in a global. While running we
really don't care which domain is the system's default domain.

diffstat:

 usr.sbin/ypbind/ypbind.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (35 lines):

diff -r c69ae71215c9 -r 09ed561d91ed usr.sbin/ypbind/ypbind.c
--- a/usr.sbin/ypbind/ypbind.c  Tue Jun 10 17:09:42 2014 +0000
+++ b/usr.sbin/ypbind/ypbind.c  Tue Jun 10 17:18:02 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ypbind.c,v 1.90 2011/08/30 17:06:22 plunky Exp $       */
+/*     $NetBSD: ypbind.c,v 1.91 2014/06/10 17:18:02 dholland Exp $     */
 
 /*
  * Copyright (c) 1992, 1993 Theo de Raadt <deraadt%fsa.ca@localhost>
@@ -28,7 +28,7 @@
 
 #include <sys/cdefs.h>
 #ifndef LINT
-__RCSID("$NetBSD: ypbind.c,v 1.90 2011/08/30 17:06:22 plunky Exp $");
+__RCSID("$NetBSD: ypbind.c,v 1.91 2014/06/10 17:18:02 dholland Exp $");
 #endif
 
 #include <sys/types.h>
@@ -102,8 +102,6 @@
 
 #define BUFSIZE                1400
 
-static char *domainname;
-
 static struct domain *domains;
 static int check;
 
@@ -1173,6 +1171,7 @@
        fd_set fdsr;
        int width, lockfd;
        int evil = 0;
+       char *domainname;
 
        setprogname(argv[0]);
        (void)yp_get_default_domain(&domainname);



Home | Main Index | Thread Index | Old Index