Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.busybox.net/busybox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Andersen <andersen@codepoet.org>2000-02-19 00:34:17 +0300
committerErik Andersen <andersen@codepoet.org>2000-02-19 00:34:17 +0300
commite272915e1ffd6978ef3555ce4ae1798a9fbcee56 (patch)
treeab4773383a4ed9ee5ccb52b58f981267e15db6e0 /archival
parentbf5f009862f8dbc6d767c17064380790a047cce1 (diff)
Some updates for the day,
-Erik
Diffstat (limited to 'archival')
-rw-r--r--archival/tar.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/archival/tar.c b/archival/tar.c
index 87b5d2176..8f802de64 100644
--- a/archival/tar.c
+++ b/archival/tar.c
@@ -596,6 +596,12 @@ readHeader(const TarHeader * hp, int fileCount, char **fileTable)
*/
if (S_ISDIR(mode)) {
if (createPath(outName, mode) == TRUE) {
+ /* make the final component, just in case it was
+ * omitted by createPath() (which will skip the
+ * directory if it doesn't have a terminating '/')
+ */
+ mkdir(outName, mode);
+
/* Set the file time */
utb.actime = mtime;
utb.modtime = mtime;