summaryrefslogtreecommitdiff
path: root/tar.c
diff options
context:
space:
mode:
authorEric Andersen1999-10-13 21:12:06 +0000
committerEric Andersen1999-10-13 21:12:06 +0000
commitf6be944a6ae612c70ce010582d9c3cdd72f7144f (patch)
tree36ab89d86aad17d6922566cad8e49ba33c5ede81 /tar.c
parent305a73f5eacd94eefe2f2a5a00034d579ef6b1e7 (diff)
downloadbusybox-f6be944a6ae612c70ce010582d9c3cdd72f7144f.zip
busybox-f6be944a6ae612c70ce010582d9c3cdd72f7144f.tar.gz
More stuff
Diffstat (limited to 'tar.c')
-rw-r--r--tar.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/tar.c b/tar.c
index ff60f06..f222c3c 100644
--- a/tar.c
+++ b/tar.c
@@ -103,7 +103,6 @@ static ino_t tarInode;
*/
static void readTarFile (int fileCount, char **fileTable);
static void readData (const char *cp, int count);
-static void createPath (const char *name, int mode);
static long getOctal (const char *cp, int len);
static void readHeader (const TarHeader * hp,
@@ -1023,36 +1022,6 @@ static void writeTarBlock (const char *buf, int len)
/*
- * Attempt to create the directories along the specified path, except for
- * the final component. The mode is given for the final directory only,
- * while all previous ones get default protections. Errors are not reported
- * here, as failures to restore files can be reported later.
- */
-static void createPath (const char *name, int mode)
-{
- char *cp;
- char *cpOld;
- char buf[TAR_NAME_SIZE];
-
- strcpy (buf, name);
-
- cp = strchr (buf, '/');
-
- while (cp) {
- cpOld = cp;
- cp = strchr (cp + 1, '/');
-
- *cpOld = '\0';
-
- if (mkdir (buf, cp ? 0777 : mode) == 0)
- printf ("Directory \"%s\" created\n", buf);
-
- *cpOld = '/';
- }
-}
-
-
-/*
* Read an octal value in a field of the specified width, with optional
* spaces on both sides of the number and with an optional null character
* at the end. Returns -1 on an illegal format.