Correctly remove leading slashes upon extraction (thanks to Marius Groeger).

This commit is contained in:
Matt Kraai 2001-05-22 14:18:03 +00:00
parent 1d9d41150b
commit 7f7348b7b2
2 changed files with 2 additions and 2 deletions

View File

@ -490,7 +490,7 @@ readTarHeader(struct TarHeader *rawHeader, struct TarInfo *header)
static int alreadyWarned=FALSE;
while (*(header->name) == '/')
++*(header->name);
header->name++;
if (alreadyWarned == FALSE) {
error_msg("Removing leading '/' from member names");

2
tar.c
View File

@ -490,7 +490,7 @@ readTarHeader(struct TarHeader *rawHeader, struct TarInfo *header)
static int alreadyWarned=FALSE;
while (*(header->name) == '/')
++*(header->name);
header->name++;
if (alreadyWarned == FALSE) {
error_msg("Removing leading '/' from member names");