[Bug 312945] [NEW] sbackupd lock file generation is not atomic
Helmut Raiger
Helmut.Raiger at gmx.net
Thu Jan 1 18:07:45 UTC 2009
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 Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
More information about the universe-bugs
mailing list