From: VMware, Inc <> Date: Wed, 20 Jul 2011 20:47:02 +0000 (-0700) Subject: lib/file: Temporary directories need to be fully accessible X-Git-Tag: 2011.07.19-450511~7 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7fcb6887db59661a72cbf2b9072c9055817cccbd;p=thirdparty%2Fopen-vm-tools.git lib/file: Temporary directories need to be fully accessible 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 --- diff --git a/open-vm-tools/lib/file/fileTemp.c b/open-vm-tools/lib/file/fileTemp.c index df33d9dd1..f45628779 100644 --- a/open-vm-tools/lib/file/fileTemp.c +++ b/open-vm-tools/lib/file/fileTemp.c @@ -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) {