Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Backports:SLE-15-SP6:Update
storeBackup
fix-tmp-lock-file-race-condition.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fix-tmp-lock-file-race-condition.patch of Package storeBackup
Index: storeBackup/lib/fileDir.pl =================================================================== --- storeBackup.orig/lib/fileDir.pl +++ storeBackup/lib/fileDir.pl @@ -21,7 +21,7 @@ use Digest::MD5 qw(md5_hex); -use Fcntl qw(O_RDWR O_CREAT); +use Fcntl qw(O_RDWR O_CREAT O_WRONLY O_EXCL); use Fcntl ':mode'; use POSIX; use Cwd 'abs_path'; @@ -482,7 +482,7 @@ sub checkLockFile '-str' => ["creating lock file <$lockFile>"]); &::checkDelSymLink($lockFile, $prLog, 0x01); - open(FILE, '>', $lockFile) or + sysopen(FILE, $lockFile, O_WRONLY | O_CREAT | O_EXCL) or $prLog->print('-kind' => 'E', '-str' => ["cannot create lock file <$lockFile>"], '-exit' => 1);
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor