]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commit
lib/file: Enhance File_EnsureDirectoryEx to do more checking
authorOliver Kurth <okurth@vmware.com>
Tue, 24 Oct 2017 21:07:33 +0000 (14:07 -0700)
committerOliver Kurth <okurth@vmware.com>
Tue, 24 Oct 2017 21:07:33 +0000 (14:07 -0700)
commit2aba22668d4f61ddad7dff2a3e872458bf64e67a
tree0ccd264a9057441854a3074b4cb899809479d1cf
parentc579e664050ddd35e975b4a7fa18beb74f2decdc
lib/file: Enhance File_EnsureDirectoryEx to do more checking

When creating a directory, distinguish whether an EEXIST error is
because the directory already exists or because there is a file with
that path name.  Return the appropriate error.
open-vm-tools/lib/file/file.c
open-vm-tools/lib/include/file.h