diff --git a/confluent_server/confluent/osimage.py b/confluent_server/confluent/osimage.py index 7ef3d0a6..4296d3a0 100644 --- a/confluent_server/confluent/osimage.py +++ b/confluent_server/confluent/osimage.py @@ -175,6 +175,10 @@ def extract_entries(entries, flags=0, callback=None, totalsize=None, extractlist break write_data_block(write_p, buff, size, offset) write_finish_entry(write_p) + if os.path.isdir(str(entry)): + os.chmod(str(entry), 0o755) + else: + os.chmod(str(entry), 0o644) if callback: callback({'progress': float(sizedone) / float(totalsize)})