Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/scan_ffs O_CLOEXEC is not a mode :-)
details: https://anonhg.NetBSD.org/src/rev/1ec47c072f88
branches: trunk
changeset: 359743:1ec47c072f88
user: christos <christos%NetBSD.org@localhost>
date: Thu Jan 20 14:45:14 2022 +0000
description:
O_CLOEXEC is not a mode :-)
diffstat:
sbin/scan_ffs/scan_ffs.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r fbc295360d9b -r 1ec47c072f88 sbin/scan_ffs/scan_ffs.c
--- a/sbin/scan_ffs/scan_ffs.c Thu Jan 20 14:44:19 2022 +0000
+++ b/sbin/scan_ffs/scan_ffs.c Thu Jan 20 14:45:14 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: scan_ffs.c,v 1.34 2022/01/20 14:44:19 christos Exp $ */
+/* $NetBSD: scan_ffs.c,v 1.35 2022/01/20 14:45:14 christos Exp $ */
/*
* Copyright (c) 2005-2007 Juan Romero Pardines
@@ -33,7 +33,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: scan_ffs.c,v 1.34 2022/01/20 14:44:19 christos Exp $");
+__RCSID("$NetBSD: scan_ffs.c,v 1.35 2022/01/20 14:45:14 christos Exp $");
#endif /* not lint */
#include <sys/types.h>
@@ -392,7 +392,7 @@
int n;
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