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++ != ':'; )
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to