projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d9d411
)
Correctly remove leading slashes upon extraction (thanks to Marius Groeger).
author
Matt Kraai
<kraai@debian.org>
Tue, 22 May 2001 14:18:03 +0000
(14:18 -0000)
committer
Matt Kraai
<kraai@debian.org>
Tue, 22 May 2001 14:18:03 +0000
(14:18 -0000)
archival/tar.c
patch
|
blob
|
history
tar.c
patch
|
blob
|
history
diff --git
a/archival/tar.c
b/archival/tar.c
index 6af16f4bd82cbbd9c0c9a4dc99424f737c501e30..282656fe766b6ece79e7f28fef775294144fff58 100644
(file)
--- a/
archival/tar.c
+++ b/
archival/tar.c
@@
-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");
diff --git
a/tar.c
b/tar.c
index 6af16f4bd82cbbd9c0c9a4dc99424f737c501e30..282656fe766b6ece79e7f28fef775294144fff58 100644
(file)
--- a/
tar.c
+++ b/
tar.c
@@
-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");