nssbackup-team team mailing list archive
-
nssbackup-team team
-
Mailing list archive
-
Message #00287
[Bug 312945] [NEW] sbackupd lock file generation is not atomic
Public bug reported:
Binary package hint: sbackup
The lock file generation in sbackupd.py is not atomic as it tries to
open the lockfile for read and if this fails it creates it by opening it
for write.
Something like:
try:
fd = os.open(path, os.O_CREAT | os.O_EXCL | os.O_RDWR)
except OSError, e:
if e.errno != errno.EEXIST:
should fix the issue.
** Affects: sbackup (Ubuntu)
Importance: Undecided
Status: New
--
sbackupd lock file generation is not atomic
https://bugs.launchpad.net/bugs/312945
You received this bug notification because you are a member of NSsbackup
team, which is subscribed to sbackup in ubuntu.
Follow ups
References