Compare commits
2 commits
50bc4a8a07
...
9d31798da6
Author | SHA1 | Date | |
---|---|---|---|
9d31798da6 | |||
1c06462ca7 |
2 changed files with 8 additions and 1 deletions
|
@ -2,6 +2,13 @@
|
|||
|
||||
## Upcoming Changes
|
||||
|
||||
## Version 1.5
|
||||
|
||||
Previous file-format-v1 implementation of "safe links" still created a symlink
|
||||
if a relative or absolute link existed in the file. This version fixes this, and
|
||||
prevents invalid symlinks from being created. (This check is only done if the
|
||||
bit-flag is set in the file as mentioned in the file-format spec for v1 files.)
|
||||
|
||||
## Version 1.4
|
||||
|
||||
Do "safe links" behavior by default: symlinks pointing to outside of archived
|
||||
|
|
|
@ -3717,7 +3717,7 @@ int simple_archiver_parse_archive_version_1(FILE *in_f, int_fast8_t do_extract,
|
|||
|
||||
uint_fast8_t link_extracted = 0;
|
||||
uint_fast8_t skip_due_to_map = 0;
|
||||
uint_fast8_t skip_due_to_invalid = 0;
|
||||
uint_fast8_t skip_due_to_invalid = is_invalid ? 1 : 0;
|
||||
|
||||
if (fread(buf, 1, 2, in_f) != 2) {
|
||||
return SDAS_INVALID_FILE;
|
||||
|
|
Loading…
Reference in a new issue