diff options
author | Chris Johns <chrisj@rtems.org> | 2016-08-01 11:02:13 +1000 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2016-08-09 17:22:26 +1000 |
commit | b0f08c83e23e69c7b19b04d38910f90b5f7af51b (patch) | |
tree | 260e3b5eb5323bcd5628d3269dcd96207f02ee4c /cpukit/libmisc/untar/untar.h | |
parent | 5d0f0de4aa3791b32b4b48e5f97a1e68f07641e3 (diff) |
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.
Diffstat (limited to '')
-rw-r--r-- | cpukit/libmisc/untar/untar.h | 7 |
1 files changed, 6 insertions, 1 deletions
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 @@ -74,9 +74,14 @@ 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. |