Compare commits

...

3 commits

Author SHA1 Message Date
ckolivas cc698c919c Trivial copyright date update.
Some checks failed
check_build / build (push) Has been cancelled
2026-03-25 14:34:01 +11:00
ckolivas 2de3cd3dbc Display what directory a temporary output file is being written to. This helps enable debugging inadequate space errors.
Some checks failed
check_build / build (push) Has been cancelled
2026-03-01 14:23:48 +11:00
ckolivas 93bb1190f8 Minor documentation error.
Correct magic header documentation.
2026-03-01 14:17:34 +11:00
3 changed files with 11 additions and 6 deletions

View file

@ -14,13 +14,14 @@ Magic data:
0->3 LRZI 0->3 LRZI
4 LRZIP Major Version Number 4 LRZIP Major Version Number
5 LRZIP Minor Version Number 5 LRZIP Minor Version Number
6->14 Source File Size or 0 if unknown, or salt in encrypted file 6->13 Source File Size or 0 if unknown, or salt in encrypted file
14->15 Unused
16->20 LZMA Properties Encoded (lc,lp,pb,fb, and dictionary size) 16->20 LZMA Properties Encoded (lc,lp,pb,fb, and dictionary size)
21 1 = md5sum hash is stored at the end of the archive 21 1 = md5sum hash is stored at the end of the archive
22 1 = data is encrypted with sha512/aes128 22 1 = data is encrypted with sha512/aes128
23 Unused 23 Unused
Encrypted salt (bytes 6->14 in magic if encrypted): Encrypted salt (bytes 6->13 in magic if encrypted):
0->1 Encoded number of loops to hash password 0->1 Encoded number of loops to hash password
2->7 Random data 2->7 Random data
(RCD0 is set to 8 bytes always on encrypted files) (RCD0 is set to 8 bytes always on encrypted files)
@ -60,7 +61,8 @@ Magic data:
0->3 LRZI 0->3 LRZI
4 LRZIP Major Version Number 4 LRZIP Major Version Number
5 LRZIP Minor Version Number 5 LRZIP Minor Version Number
6->14 Source File Size 6->13 Source File Size
14->15 Unused
16->20 LZMA Properties Encoded (lc,lp,pb,fb, and dictionary size) 16->20 LZMA Properties Encoded (lc,lp,pb,fb, and dictionary size)
21 Flag that md5sum hash is stored at the end of the archive 21 Flag that md5sum hash is stored at the end of the archive
22-23 not used 22-23 not used
@ -90,7 +92,8 @@ Byte Content
0-3 LRZI 0-3 LRZI
4 LRZIP Major Version Number 4 LRZIP Major Version Number
5 LRZIP Minor Version Number 5 LRZIP Minor Version Number
6-14 Source File Size 6-13 Source File Size
14->15 Unused
16-20 LZMA Properties Encoded (lc,lp,pb,fb, and dictionary size) 16-20 LZMA Properties Encoded (lc,lp,pb,fb, and dictionary size)
21-24 not used 21-24 not used
24-48 Stream 1 header data 24-48 Stream 1 header data
@ -117,7 +120,8 @@ Byte Content
4 LRZIP Major Version Number 4 LRZIP Major Version Number
5 LRZIP Minor Version Number 5 LRZIP Minor Version Number
6-9 Source File Size (no HAVE_LARGE_FILES) 6-9 Source File Size (no HAVE_LARGE_FILES)
6-14 Source File Size 6-13 Source File Size
14->15 Unused
16-20 LZMA Properties Encoded (lc,lp,pb,fb, and dictionary size) 16-20 LZMA Properties Encoded (lc,lp,pb,fb, and dictionary size)
21-23 not used 21-23 not used
24-36 Stream 1 header data 24-36 Stream 1 header data

View file

@ -340,6 +340,7 @@ int open_tmpoutfile(rzip_control *control)
if (unlikely(!control->outfile)) if (unlikely(!control->outfile))
fatal_return(("Failed to allocate outfile name\n"), -1); fatal_return(("Failed to allocate outfile name\n"), -1);
strcpy(control->outfile, control->tmpdir); strcpy(control->outfile, control->tmpdir);
print_maxverbose("Writing temporary file to %s\n", control->tmpdir);
strcat(control->outfile, "lrzipout.XXXXXX"); strcat(control->outfile, "lrzipout.XXXXXX");
} }

2
main.c
View file

@ -69,7 +69,7 @@ static rzip_control base_control, local_control, *control;
static void usage(bool compat) static void usage(bool compat)
{ {
print_output("lrz%s version %s\n", compat ? "" : "ip", PACKAGE_VERSION); print_output("lrz%s version %s\n", compat ? "" : "ip", PACKAGE_VERSION);
print_output("Copyright (C) Con Kolivas 2006-2022\n"); print_output("Copyright (C) Con Kolivas 2006-2026\n");
print_output("Based on rzip "); print_output("Based on rzip ");
print_output("Copyright (C) Andrew Tridgell 1998-2003\n\n"); print_output("Copyright (C) Andrew Tridgell 1998-2003\n\n");
print_output("Usage: lrz%s [options] <file...>\n", compat ? "" : "ip"); print_output("Usage: lrz%s [options] <file...>\n", compat ? "" : "ip");