1a8a9cb57b
Though S_IWOTH flag is set in the open() call, the lock file is not created as accessable by others if others try to open the file with O_RDWR permission. It's because the default umask masks off S_IWOTH. This patch changes the umask to S_IXOTH since others don't need that permission but it'll open up S_IWOTH. Restore the umask to original after the file is opened. Change-Id: I8a239e1566ce0b0b18821913385f239db7c3588e