summaryrefslogtreecommitdiffstats
path: root/cpukit/libmisc/untar/untar.h
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2016-08-01 11:02:13 +1000
committerChris Johns <chrisj@rtems.org>2016-08-09 17:22:26 +1000
commitb0f08c83e23e69c7b19b04d38910f90b5f7af51b (patch)
tree260e3b5eb5323bcd5628d3269dcd96207f02ee4c /cpukit/libmisc/untar/untar.h
parentbsp/atsam: Add power support (diff)
downloadrtems-b0f08c83e23e69c7b19b04d38910f90b5f7af51b.tar.bz2
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.h7
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.