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.

_______________________________________________
Mailing list: https://launchpad.net/~nssbackup-team
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~nssbackup-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to