Compare commits

..

No commits in common. "master" and "v0.660" have entirely different histories.

3 changed files with 6 additions and 11 deletions

View file

@ -14,14 +14,13 @@ 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->13 Source File Size or 0 if unknown, or salt in encrypted file 6->14 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->13 in magic if encrypted): Encrypted salt (bytes 6->14 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)
@ -61,8 +60,7 @@ 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->13 Source File Size 6->14 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
@ -92,8 +90,7 @@ 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-13 Source File Size 6-14 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
@ -120,8 +117,7 @@ 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-13 Source File Size 6-14 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,7 +340,6 @@ 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-2026\n"); print_output("Copyright (C) Con Kolivas 2006-2022\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");