Compare commits

..

8 commits

Author SHA1 Message Date
eff2b44f6d Impl. setting stored UID/GID if EUID 0
All checks were successful
Run Unit Tests / build-and-run-unit-tests (push) Successful in 56s
2024-09-28 19:07:37 +09:00
7c4663daf2 "Fix" Linux/Mac/Unix usage 2024-09-28 19:07:37 +09:00
49f6434601 Impl. simple test/extract new file format (WIP)
TODO:
    Extract symlinks in new format (implemented but untested).
    Extract compressed files in new format.
2024-09-28 19:07:37 +09:00
e5acb4d730 Split up handling of archive file based on version 2024-09-28 19:07:37 +09:00
d48d458712 Fix typo 2024-09-28 19:07:37 +09:00
1bbfd8c53d Fix typo in file format specification version 1 2024-09-28 19:07:37 +09:00
b9ed8961a4 Create file format for format version 1
This is in preparation of improving compression by concatenating files
together before compressing them to reduce the per-file overhead.

Discussed in
#18
2024-09-28 19:07:37 +09:00
a81ec4434a Fix potential NULL-ptr dereference
All checks were successful
Run Unit Tests / build-and-run-unit-tests (push) Successful in 5s
2024-09-28 19:07:12 +09:00

View file

@ -1438,6 +1438,8 @@ int simple_archiver_parse_archive_version_0(FILE *in_f, int_fast8_t do_extract,
}
uc_heap_buf[u16 - 1] = 0;
fprintf(stderr, "Decompressor cmd: %s\n", uc_heap_buf);
decompressor_cmd = heap_buf;
heap_buf = NULL;
}
} else {
fprintf(stderr, "De/compressor flag is NOT set.\n");