From eb74f312049f81c49c3cb58764791fe6c5f48213 Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Sun, 7 Jul 2024 14:43:32 +0900 Subject: [PATCH] Revise file_format.md Specify how symlink paths should be handled if they do not exist (path size of 0). --- file_format.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/file_format.md b/file_format.md index c663473..83ffa9e 100644 --- a/file_format.md +++ b/file_format.md @@ -53,11 +53,13 @@ Following the file-count bytes, the following bytes are added for each file: 1. 2 bytes is 16-bit unsigned integer "link target absolute path" in big-endian. This does not include the NULL at the end of the string. 2. X bytes of link-target-absolute-path (length defined by previous value). - Is a NULL-terminated string. + Is a NULL-terminated string. If the previous "size" value is 0, then + this entry does not exist and should be skipped. 3. 2 bytes is 16-bit unsigned integer "link target relative path" in big-endian. This does not include the NULL at the end of the string. 4. X bytes of link-target-relative-path (length defined by previous value). - Is a NULL-terminated string. + Is a NULL-terminated string. If the previous "size" value is 0, then + this entry does not exist and should be skipped. 5. If this file is NOT a symbolic link: 1. 8 bytes 64-bit unsigned integer "size of filename in this archive file". 2. X bytes file data (length defined by previous value).