fix bug in the original code I copied from to scan_ffs

This commit is contained in:
christos 2022-01-20 14:46:06 +00:00
parent ac31891a27
commit b987e7414b
1 changed files with 2 additions and 2 deletions

View File

@ -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;