]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commit
lib/file/file.c: Handle EACCES during File_CreateDirectoryHierarchyEx
authorKruti <kpendharkar@vmware.com>
Mon, 19 Feb 2024 14:32:44 +0000 (06:32 -0800)
committerKruti <kpendharkar@vmware.com>
Mon, 19 Feb 2024 14:32:44 +0000 (06:32 -0800)
commit60094472f75aefbbc957574faa8c1663ee0625d4
tree9a2f00c77abe2b30677bae447ca349ca563166a1
parent777dc80ddfcf8980c055ab33091200923a06ab67
lib/file/file.c: Handle EACCES during File_CreateDirectoryHierarchyEx

On DELL thinOS, while creating an existing dir in a path without write
permission, mkdir returns EACCES. This breaks the directory
hierarchy check.
This patch handles the EACCES by checking the file with euidaccess
after an EACCES failure.
open-vm-tools/lib/file/file.c