Module Name: src
Committed By: kamil
Date: Tue Feb 20 18:20:05 UTC 2018
Modified Files:
src/sys/sys: fcntl.h
Log Message:
Enable O_NOFOLLOW in the POSIX namespace
This open(2) flag first appeared in FreeBSD and was standarized by POSIX
in the 2008 standard.
To generate a diff of this commit:
cvs rdiff -u -r1.49 -r1.50 src/sys/sys/fcntl.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/sys/fcntl.h
diff -u src/sys/sys/fcntl.h:1.49 src/sys/sys/fcntl.h:1.50
--- src/sys/sys/fcntl.h:1.49 Thu Nov 9 20:30:01 2017
+++ src/sys/sys/fcntl.h Tue Feb 20 18:20:05 2018
@@ -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