Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Jul 2020 23:08:51 +0000 (UTC)
From:      Don Lewis <truckman@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r363536 - in stable/11: libexec/ftpd usr.bin/localedef usr.sbin/rrenumd
Message-ID:  <202007252308.06PN8pZK015611@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: truckman
Date: Sat Jul 25 23:08:51 2020
New Revision: 363536
URL: https://svnweb.freebsd.org/changeset/base/363536

Log:
  MFC r362569 (by jkim):
  
      Fix build with recent byacc.
  
  S3curity:

Modified:
  stable/11/libexec/ftpd/ftpcmd.y
  stable/11/usr.bin/localedef/localedef.c
  stable/11/usr.bin/localedef/localedef.h
  stable/11/usr.sbin/rrenumd/parser.y
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/libexec/ftpd/ftpcmd.y
==============================================================================
--- stable/11/libexec/ftpd/ftpcmd.y	Sat Jul 25 23:06:47 2020	(r363535)
+++ stable/11/libexec/ftpd/ftpcmd.y	Sat Jul 25 23:08:51 2020	(r363536)
@@ -72,6 +72,8 @@ __FBSDID("$FreeBSD$");
 #include "extern.h"
 #include "pathnames.h"
 
+#define	yylex	ftpcmd_yylex
+
 off_t	restart_point;
 
 static	int cmd_type;

Modified: stable/11/usr.bin/localedef/localedef.c
==============================================================================
--- stable/11/usr.bin/localedef/localedef.c	Sat Jul 25 23:06:47 2020	(r363535)
+++ stable/11/usr.bin/localedef/localedef.c	Sat Jul 25 23:08:51 2020	(r363536)
@@ -257,7 +257,9 @@ main(int argc, char **argv)
 	init_numeric();
 	init_time();
 
+#if YYDEBUG
 	yydebug = 0;
+#endif
 
 	(void) setlocale(LC_ALL, "");
 

Modified: stable/11/usr.bin/localedef/localedef.h
==============================================================================
--- stable/11/usr.bin/localedef/localedef.h	Sat Jul 25 23:06:47 2020	(r363535)
+++ stable/11/usr.bin/localedef/localedef.h	Sat Jul 25 23:08:51 2020	(r363536)
@@ -47,7 +47,9 @@ extern int mb_cur_max;
 extern int mb_cur_min;
 extern int last_kw;
 extern int verbose;
+#if YYDEBUG
 extern int yydebug;
+#endif
 extern int lineno;
 extern int undefok;	/* mostly ignore undefined symbols */
 extern int warnok;

Modified: stable/11/usr.sbin/rrenumd/parser.y
==============================================================================
--- stable/11/usr.sbin/rrenumd/parser.y	Sat Jul 25 23:06:47 2020	(r363535)
+++ stable/11/usr.sbin/rrenumd/parser.y	Sat Jul 25 23:08:51 2020	(r363536)
@@ -139,7 +139,7 @@ statement:
 debug_statement:
 		DEBUG_CMD flag EOS
 		{
-#ifdef YYDEBUG
+#if YYDEBUG
 			yydebug = $2;
 #endif /* YYDEBUG */
 		}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202007252308.06PN8pZK015611>