svn commit: r222824 - head/usr.sbin/rtadvd

Hiroki Sato hrs at FreeBSD.org
Tue Jun 7 15:40:18 UTC 2011


Author: hrs
Date: Tue Jun  7 15:40:17 2011
New Revision: 222824
URL: http://svn.freebsd.org/changeset/base/222824

Log:
  Fix a bug that prevents tc=xxx from working.

Modified:
  head/usr.sbin/rtadvd/advcap.c

Modified: head/usr.sbin/rtadvd/advcap.c
==============================================================================
--- head/usr.sbin/rtadvd/advcap.c	Tue Jun  7 14:36:13 2011	(r222823)
+++ head/usr.sbin/rtadvd/advcap.c	Tue Jun  7 15:40:17 2011	(r222824)
@@ -81,7 +81,6 @@
 static	char *tbuf;
 static	int hopcount;	/* detect infinite loops in termcap, init 0 */
 
-static const char *remotefile;
 extern const char *conffile;
 
 int tgetent(char *, char *);
@@ -204,7 +203,7 @@ tnchktc(void)
 		write(STDERR_FILENO, "Infinite tc= loop\n", 18);
 		return (0);
 	}
-	if (getent(tcbuf, tcname, remotefile) != 1) {
+	if (getent(tcbuf, tcname, conffile) != 1) {
 		return (0);
 	}
 	for (q = tcbuf; *q++ != ':'; )


More information about the svn-src-all mailing list