From acf25154a0a2b4029a194dafd41c466bc8a3472a Mon Sep 17 00:00:00 2001 From: erik Date: Fri, 18 Feb 2000 21:34:17 +0000 Subject: Some updates for the day, -Erik git-svn-id: svn://busybox.net/trunk/busybox@373 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- tar.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tar.c') diff --git a/tar.c b/tar.c index 87b5d2176..8f802de64 100644 --- a/tar.c +++ b/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; -- cgit v1.2.3-55-g6feb