]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
lib/file: Temporary directories need to be fully accessible
authorVMware, Inc <>
Wed, 20 Jul 2011 20:47:02 +0000 (13:47 -0700)
committerMarcelo Vanzin <mvanzin@vmware.com>
Wed, 20 Jul 2011 20:47:02 +0000 (13:47 -0700)
Creating a private, temporary directory requires access to it.
Change the access mode from 0600 (like a file) to 0700 so as to
make it traversible.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
open-vm-tools/lib/file/fileTemp.c

index df33d9dd1f5f09b524dcbb4ed11db5a5bb061ca0..f45628779b70a3c812a8f07d3776f2fdca610279 100644 (file)
@@ -165,7 +165,7 @@ File_MakeTempEx2(ConstUnicode dir,                             // IN:
       if (createTempFile) {
          fd = Posix_Open(path, O_CREAT | O_EXCL | O_BINARY | O_RDWR, 0600);
       } else {
-         fd = Posix_Mkdir(path, 0600);
+         fd = Posix_Mkdir(path, 0700);
       }
 
       if (fd != -1) {