Module Name: src
Committed By: christos
Date: Thu Jan 20 14:46:06 UTC 2022
Modified Files:
src/external/gpl2/xcvs/dist/src: main.c
Log Message:
fix bug in the original code I copied from to scan_ffs
To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/external/gpl2/xcvs/dist/src/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/gpl2/xcvs/dist/src/main.c
diff -u src/external/gpl2/xcvs/dist/src/main.c:1.7 src/external/gpl2/xcvs/dist/src/main.c:1.8
--- src/external/gpl2/xcvs/dist/src/main.c:1.7 Tue Aug 21 11:37:33 2018
+++ src/external/gpl2/xcvs/dist/src/main.c Thu Jan 20 09:46:06 2022
@@ -17,7 +17,7 @@
*
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: main.c,v 1.7 2018/08/21 15:37:33 christos Exp $");
+__RCSID("$NetBSD: main.c,v 1.8 2022/01/20 14:46:06 christos Exp $");
#include "cvs.h"
@@ -509,7 +509,7 @@ show_status (int n)
static int ttyfd = -2;
if (ttyfd == -2)
- ttyfd = open(_PATH_TTY, O_RDWR, O_CLOEXEC);
+ ttyfd = open(_PATH_TTY, O_RDWR | O_CLOEXEC);
if (ttyfd == -1)
return;