]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Change to common source file not applicable to open-vm-tools.
authorKruti Pendharkar <kp025370@broadcom.com>
Wed, 8 Jan 2025 06:05:50 +0000 (22:05 -0800)
committerKruti Pendharkar <kp025370@broadcom.com>
Wed, 8 Jan 2025 06:05:50 +0000 (22:05 -0800)
open-vm-tools/lib/file/fileLockPrimitive.c

index e550483df345e78878cb937561023463e1b3b7d7..193fc36934acc61454559350b6280520603ca01f 100644 (file)
@@ -1214,6 +1214,7 @@ FileLockMakeDirectory(const char *pathName)  // IN:
 
 #if !defined(_WIN32)
    mode_t save;
+   mode_t check;
    static Atomic_Ptr lckStorage;
 
    /* Get and take lock to serial this routine. */
@@ -1231,7 +1232,9 @@ FileLockMakeDirectory(const char *pathName)  // IN:
    err = FileCreateDirectoryRobust(pathName, 0777);
 
 #if !defined(_WIN32)
-   umask(save);  // Restore previous value
+   check = umask(save);  // Restore previous value; 0 should be returned
+
+   ASSERT(check == 0);
 
    MXUser_ReleaseExclLock(lck);
 #endif