Set owner on watcher pause and queue drain files
authorMichael Hanselmann <hansmi@google.com>
Tue, 11 Dec 2012 13:29:45 +0000 (14:29 +0100)
committerMichael Hanselmann <hansmi@google.com>
Tue, 11 Dec 2012 14:31:56 +0000 (15:31 +0100)
commitebd437a422718fa9a6c75ff176a150d3cd0b5159
tree65010e172ab18dc4f7bf54d3d7bec3060bdf9ef6
parentaf8f2fbf3d8377d51e27ae26491fc8d4c78a9b6e
Set owner on watcher pause and queue drain files

If the files were created by a user different, e.g. due to a switch from
running masterd as root to running it as a dedicated user, they couldn't
be modified/removed anymore.

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
lib/tools/ensure_dirs.py