Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl2/xcvs/dist/src fix bug in the original code I c...



details:   https://anonhg.NetBSD.org/src/rev/93b81358d015
branches:  trunk
changeset: 359744:93b81358d015
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Jan 20 14:46:06 2022 +0000

description:
fix bug in the original code I copied from to scan_ffs

diffstat:

 external/gpl2/xcvs/dist/src/main.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 1ec47c072f88 -r 93b81358d015 external/gpl2/xcvs/dist/src/main.c
--- a/external/gpl2/xcvs/dist/src/main.c        Thu Jan 20 14:45:14 2022 +0000
+++ b/external/gpl2/xcvs/dist/src/main.c        Thu Jan 20 14:46:06 2022 +0000
@@ -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 @@
        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;



Home | Main Index | Thread Index | Old Index