capture possible chown stderr output

reviewable/pr18780/r1
Michael DeHaan 13 years ago
parent bd16c7c4ac
commit ecdecdb76f

@ -216,7 +216,7 @@ def set_owner_if_different(path, owner, changed):
return changed return changed
user, group = user_and_group(path) user, group = user_and_group(path)
if owner != user: if owner != user:
rc = os.system("/bin/chown -R %s %s" % (owner, path)) rc = os.system("/bin/chown -R %s %s 2>/dev/null" % (owner, path))
if rc != 0: if rc != 0:
fail_kv(path=path, msg='chown failed') fail_kv(path=path, msg='chown failed')
return True return True

Loading…
Cancel
Save