From b0f08c83e23e69c7b19b04d38910f90b5f7af51b Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Mon, 1 Aug 2016 11:02:13 +1000 Subject: libmisc/untar: Set the perms to the value in the tar file. This patch parses the mode field in the tar header and sets the directory or file to the mode value in the header. Closes #2768. --- cpukit/libmisc/untar/untar.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'cpukit/libmisc/untar/untar.h') diff --git a/cpukit/libmisc/untar/untar.h b/cpukit/libmisc/untar/untar.h index 4d00d369b2..3c8bb74130 100644 --- a/cpukit/libmisc/untar/untar.h +++ b/cpukit/libmisc/untar/untar.h @@ -73,10 +73,15 @@ typedef struct { */ size_t done_bytes; + /** + * @brief Mode of the file. + */ + unsigned long mode; + /** * @brief Overall amount of bytes to be processed. */ - long unsigned todo_bytes; + unsigned long todo_bytes; /** * @brief Overall amount of blocks to be processed. -- cgit v1.2.3