Merge pull request #803 from mjibson/aci-rootfs

Allow listing of ACI rootfs by non-root
This commit is contained in:
Matt Jibson 2015-11-06 13:22:37 -05:00
commit 9df80d713e

View file

@ -43,4 +43,6 @@ class TarImageFormatter(object):
""" Returns TAR file header data for a folder with the given name. """ """ Returns TAR file header data for a folder with the given name. """
info = tarfile.TarInfo(name=name) info = tarfile.TarInfo(name=name)
info.type = tarfile.DIRTYPE info.type = tarfile.DIRTYPE
# allow the directory to be readable by non-root users
info.mode = 0755
return info.tobuf() return info.tobuf()