From fdd0e19b79c2545f5036b2fd27e56d51d9029799 Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Sun, 7 Jul 2024 13:04:41 +0900 Subject: [PATCH] Update file_format.md Store both absolute and relative paths when storing a symbolic link's info. --- file_format.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/file_format.md b/file_format.md index 5fda53b..c663473 100644 --- a/file_format.md +++ b/file_format.md @@ -50,10 +50,14 @@ Following the file-count bytes, the following bytes are added for each file: 4. The fourth byte. 1. Currently unused. 4. If this file is a symbolic link: - 1. 2 bytes is 16-bit unsigned integer "link target path" in big-endian. This - does not include the NULL at the end of the string. - 2. X bytes of link-target-path (length defined by previous value). Is a - NULL-terminated string. + 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. + 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. 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).