Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Aug 2020 13:52:47 +0000 (UTC)
From:      Edward Tomasz Napierala <trasz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r364677 - stable/12/sys/compat/linux
Message-ID:  <202008241352.07ODql7S079546@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: trasz
Date: Mon Aug 24 13:52:47 2020
New Revision: 364677
URL: https://svnweb.freebsd.org/changeset/base/364677

Log:
  MFC r354732:
  
  Support O_CLOEXEC in linux(4) open(2) and openat(2).
  
  Sponsored by:	The FreeBSD Foundation

Modified:
  stable/12/sys/compat/linux/linux_file.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/compat/linux/linux_file.c
==============================================================================
--- stable/12/sys/compat/linux/linux_file.c	Mon Aug 24 13:50:55 2020	(r364676)
+++ stable/12/sys/compat/linux/linux_file.c	Mon Aug 24 13:52:47 2020	(r364677)
@@ -112,6 +112,8 @@ linux_common_open(struct thread *td, int dirfd, char *
 		bsd_flags |= O_APPEND;
 	if (l_flags & LINUX_O_SYNC)
 		bsd_flags |= O_FSYNC;
+	if (l_flags & LINUX_O_CLOEXEC)
+		bsd_flags |= O_CLOEXEC;
 	if (l_flags & LINUX_O_NONBLOCK)
 		bsd_flags |= O_NONBLOCK;
 	if (l_flags & LINUX_FASYNC)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202008241352.07ODql7S079546>