Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

file permissions are not retained #886

Open
sammy-da opened this issue Feb 6, 2025 · 2 comments
Open

file permissions are not retained #886

sammy-da opened this issue Feb 6, 2025 · 2 comments

Comments

@sammy-da
Copy link

sammy-da commented Feb 6, 2025

Files that are outside of directories don't get packed when Add()'ed to the file store and subesquently Copy()'ed, and their permissions (i.e. rwx file mode bits) don't get retained.

Also, for files within (sub-) directories, their mode bits don't get fully retained when pulling either.
Seems like the un-packing is akin to tar -x rather than tar -x --preserve-permissions.
It would be nice to have an option to preserve the permissions

@sammy-da
Copy link
Author

sammy-da commented Feb 6, 2025

It would be nice to have an option to preserve the permissions

Willing to contribute a PR.

@sammy-da
Copy link
Author

sammy-da commented Feb 7, 2025

Files that are outside of directories don't get packed when Add()'ed to the file store and subesquently Copy()'ed, and their permissions (i.e. rwx file mode bits) don't get retained.

for those, i came up with my own scheme for recording the file info (mode, modtime) in my app, by setting annotations on the layer corresponding to each file when pushing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant