Source-Changes-HG archive

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

[src/trunk]: src/sys/sys Enable O_NOFOLLOW in the POSIX namespace



details:   https://anonhg.NetBSD.org/src/rev/c008cbecaa13
branches:  trunk
changeset: 359682:c008cbecaa13
user:      kamil <kamil%NetBSD.org@localhost>
date:      Tue Feb 20 18:20:05 2018 +0000

description:
Enable O_NOFOLLOW in the POSIX namespace

This open(2) flag first appeared in FreeBSD and was standarized by POSIX
in the 2008 standard.

diffstat:

 sys/sys/fcntl.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r f19b849d5a59 -r c008cbecaa13 sys/sys/fcntl.h
--- a/sys/sys/fcntl.h   Tue Feb 20 17:23:39 2018 +0000
+++ b/sys/sys/fcntl.h   Tue Feb 20 18:20:05 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fcntl.h,v 1.49 2017/11/09 20:30:01 christos Exp $      */
+/*     $NetBSD: fcntl.h,v 1.50 2018/02/20 18:20:05 kamil Exp $ */
 
 /*-
  * Copyright (c) 1983, 1990, 1993
@@ -90,7 +90,7 @@
     (_XOPEN_SOURCE - 0) >= 500 || defined(_NETBSD_SOURCE)
 #define        O_SYNC          0x00000080      /* synchronous writes */
 #endif
-#if defined(_NETBSD_SOURCE)
+#if (_POSIX_C_SOURCE - 0) >= 200809L || defined(_NETBSD_SOURCE)
 #define        O_NOFOLLOW      0x00000100      /* don't follow symlinks on the last */
                                        /* path component */
 #endif



Home | Main Index | Thread Index | Old Index