Module Name:    src
Committed By:   christos
Date:           Sun Feb 21 00:36:06 UTC 2021

Modified Files:
        src/external/bsd/byacc/dist: main.c

Log Message:
set explicit_file_name when we use getopt.


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/external/bsd/byacc/dist/main.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/bsd/byacc/dist/main.c
diff -u src/external/bsd/byacc/dist/main.c:1.19 src/external/bsd/byacc/dist/main.c:1.20
--- src/external/bsd/byacc/dist/main.c:1.19	Sat Feb 20 17:57:56 2021
+++ src/external/bsd/byacc/dist/main.c	Sat Feb 20 19:36:06 2021
@@ -1,9 +1,9 @@
-/*	$NetBSD: main.c,v 1.19 2021/02/20 22:57:56 christos Exp $	*/
+/*	$NetBSD: main.c,v 1.20 2021/02/21 00:36:06 christos Exp $	*/
 
 #include "defs.h"
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: main.c,v 1.19 2021/02/20 22:57:56 christos Exp $");
+__RCSID("$NetBSD: main.c,v 1.20 2021/02/21 00:36:06 christos Exp $");
 /* Id: main.c,v 1.70 2020/09/10 17:32:55 tom Exp  */
 
 #include <signal.h>
@@ -336,6 +336,7 @@ getargs(int argc, char *argv[])
 	    break;
 	case 'o':
 	    output_file_name = optarg;
+	    explicit_file_name = 1;
 	    break;
 	case 'p':
 	    symbol_prefix = optarg;

Reply via email to