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 permission not preserved when compressing/decompressing #15

Closed
spinus opened this issue Mar 28, 2013 · 3 comments
Closed

file permission not preserved when compressing/decompressing #15

spinus opened this issue Mar 28, 2013 · 3 comments

Comments

@spinus
Copy link
Contributor

spinus commented Mar 28, 2013

When compressing/decompressing new file is created with umask instead with original file permissions, I think it is a bug (what do you think?).

Case study:

# ls -lh
total 41M
-rw------- 1 root root  40M Mar 28 01:20 backup-20130328.sql
# pixz backup-20130328.sql 
# ls -lh backup-20130328.sql.xz 
-rw-r--r-- 1 root root 2.0M Mar 28 01:26 backup-20130328.sql.xz
@vasi
Copy link
Owner

vasi commented Mar 28, 2013

Thanks for the report, I hadn't thought of this. Adding to my todo list.

@dev-zzo
Copy link

dev-zzo commented May 7, 2014

Hi,

Are there any plans on actually fixing this? The issue appears to have certain security implications (e.g. disclosure of the archive contents by copying the created archive). See eg:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=746467

@hydrapolic
Copy link

This would be really great.

wookietreiber added a commit to wookietreiber/pixz that referenced this issue Aug 19, 2015
wookietreiber added a commit to wookietreiber/pixz that referenced this issue Aug 19, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants