allthemusicllc / atm-cli

Command line tool for generating and working with MIDI files.
http://allthemusic.info
Other
1.39k stars 107 forks source link

File permissions inside tar archives are all zero #16

Closed hselasky closed 3 years ago

hselasky commented 4 years ago

Hi,

When extracting the tar archives the permissions are all zero. This is a problem when opening the files.

tar --list -vf test.mid | less ---------- 0 0 0 398 Jan 1 1970 6060/6060/batch1.tar.gz ---------- 0 0 0 407 Jan 1 1970 6060/6060/batch2.tar.gz ---------- 0 0 0 408 Jan 1 1970 6060/6060/batch3.tar.gz ---------- 0 0 0 406 Jan 1 1970 6060/6060/batch4.tar.gz ---------- 0 0 0 408 Jan 1 1970 6060/6060/batch5.tar.gz ---------- 0 0 0 411 Jan 1 1970 6060/6060/batch6.tar.gz ---------- 0 0 0 409 Jan 1 1970 6060/6060/batch7.tar.gz ---------- 0 0 0 407 Jan 1 1970 6060/6060/batch8.tar.gz ---------- 0 0 0 412 Jan 1 1970 6060/6060/batch9.tar.gz ---------- 0 0 0 417 Jan 1 1970 6060/6060/batch10.tar.gz ---------- 0 0 0 406 Jan 1 1970 6060/6060/batch11.tar.gz

Could you set "rw" at least?

--HPS

allthemusicllc commented 3 years ago

@hselasky this should be fixed now, and we've added additional storage backends. Take a look at https://github.com/allthemusicllc/atm-cli/blob/master/src/storage/tar_archive.rs#L102. Please let us know if the issue persists, and thanks for reporting this!

hselasky commented 3 years ago

Thank you!