Module Name: src Committed By: christos Date: Thu Jan 20 14:45:14 UTC 2022
Modified Files: src/sbin/scan_ffs: scan_ffs.c Log Message: O_CLOEXEC is not a mode :-) To generate a diff of this commit: cvs rdiff -u -r1.34 -r1.35 src/sbin/scan_ffs/scan_ffs.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sbin/scan_ffs/scan_ffs.c diff -u src/sbin/scan_ffs/scan_ffs.c:1.34 src/sbin/scan_ffs/scan_ffs.c:1.35 --- src/sbin/scan_ffs/scan_ffs.c:1.34 Thu Jan 20 09:44:19 2022 +++ src/sbin/scan_ffs/scan_ffs.c Thu Jan 20 09:45:14 2022 @@ -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 @@ show_status(uintmax_t beg, uintmax_t tot 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;