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

lrzip -t file.lrz fails when run from write-protected dir #232

Open
pete4abw opened this issue Aug 19, 2022 · 0 comments
Open

lrzip -t file.lrz fails when run from write-protected dir #232

pete4abw opened this issue Aug 19, 2022 · 0 comments

Comments

@pete4abw
Copy link
Contributor

See This issue for more details

A possible solution is to change the DEFAULT temporary directory from $PWD to /tmp. lrzip-next handles the temp files a little differently, but the problem is the same. Proposed patch is attached. Interestingly, when running through tar -I lrzip.651 -tf file.lrz the error does not occur.

linux-5.x$ lrzip.651 -vvt /tmp/documentation.651.tar.lrz
Using configuration file /home/peter/.lrzip/lrzip.conf
Threading is ENABLED. Number of CPUs detected: 8
Detected 16558256128 bytes ram
Compression level 7
Nice Value: 19
Show Progress
Max Verbose
Test file integrity
Temporary Directory set as: ./
WARNING: Failed to create out tmpfile: ./lrzipout.rd41Le, will fail if cannot perform compression entirely in ram
Created temporary outfile ./lrzipout.rd41Le
Detected lrzip version 0.6 file.
MD5 being used for integrity testing.
Decompressing...
Reading chunk_bytes at 24
Expected size: 47175680
Chunk byte width: 4
Reading eof flag at 25
EOF: 1
Reading expected chunksize at 26
Chunk size: 47175680
Reading stream 0 header at 31
Reading stream 1 header at 44
Reading ucomp header at 5563519
Fill_buffer stream 0 c_len 893987 u_len 1826175 last_head 0
Starting thread 0 to decompress 893987 bytes from stream 0
Thread 0 decompressed 1826175 bytes from stream 0
Taking decompressed data from thread 0
Reading ucomp header at 57
Fill_buffer stream 1 c_len 2783272 u_len 10485760 last_head 2783311
Starting thread 1 to decompress 2783272 bytes from stream 1
Reading ucomp header at 2783342
Fill_buffer stream 1 c_len 2780164 u_len 10485760 last_head 6457488
Starting thread 2 to decompress 2780164 bytes from stream 1
Reading ucomp header at 6457519
Fill_buffer stream 1 c_len 1817741 u_len 6808627 last_head 0
Starting thread 3 to decompress 1817741 bytes from stream 1
Thread 3 decompressed 6808627 bytes from stream 1
Thread 2 decompressed 10485760 bytes from stream 1
Thread 1 decompressed 10485760 bytes from stream 1
Taking decompressed data from thread 1
Failed to write literal buffer of size 159
Bad file descriptor
Fatal error - exiting

pr20220818.txt.gz

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