Fix queue archive creation with wrong permissions
authorRené Nussbaumer <rn@google.com>
Wed, 19 Oct 2011 14:51:27 +0000 (16:51 +0200)
committerRené Nussbaumer <rn@google.com>
Thu, 20 Oct 2011 12:43:38 +0000 (14:43 +0200)
commit8e5a705d239f0d3740a6d539ae8e9d9d12115615
tree7d775583b93d5a09db227efe5bfde3303fa3b654
parentac0abc56a5a3cff166c51d8d312c8c69b85af1db
Fix queue archive creation with wrong permissions

On a master failover some of the archive dirs might have wrong
permissions in the non-root model. This is due to the nature of noded
still running as root and the job queue is synced that way. This patch
will fix this behaviour by setting the permissions accordingly.

Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
lib/backend.py
lib/utils/io.py