[llvm-bugs] [Bug 45619] New: openNativeFile ignores mode on Windows
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Apr 20 07:07:29 PDT 2020
https://bugs.llvm.org/show_bug.cgi?id=45619
Bug ID: 45619
Summary: openNativeFile ignores mode on Windows
Product: libraries
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: Support Libraries
Assignee: unassignedbugs at nondot.org
Reporter: ctetreau at quicinc.com
CC: llvm-bugs at lists.llvm.org
On windows, the mode parameter to openNativeFile is not used. Instead, the
implementation of openNativeFile calls the win32 function CreateFileW to create
the file. It passes CreateFileW a SECURITY_ATTRIBUTES object with its
lpSecurityDescriptor field set to nullptr. This results in a file with the
default permissions.
The symptom of all of this on my machine is that clang-format -i changes the
source permissions to have the executable bit set.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200420/73dcb288/attachment-0001.html>
More information about the llvm-bugs
mailing list