projects
/
platform
/
upstream
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ad22c9
)
A bugfix from Danny Lepage:
author
Eric Andersen
<andersen@codepoet.org>
Sat, 26 Oct 2002 10:05:37 +0000
(10:05 -0000)
committer
Eric Andersen
<andersen@codepoet.org>
Sat, 26 Oct 2002 10:05:37 +0000
(10:05 -0000)
It seems that under busybox unstable, "tar -c -f - blabla" create
a tar file named "-" instead of writing to stdout.
The included patch should fix this.
archival/tar.c
patch
|
blob
|
history
diff --git
a/archival/tar.c
b/archival/tar.c
index
d8889ae
..
48d6ce2
100644
(file)
--- a/
archival/tar.c
+++ b/
archival/tar.c
@@
-474,7
+474,7
@@
static inline int writeTarFile(const char *tarName, const int verboseFlag,
}
/* Open the tar file for writing. */
- if (tarName == NULL) {
+ if (tarName == NULL
|| (tarName[0] == '-' && tarName[1] == '\0')
) {
tbInfo.tarFd = fileno(stdout);
tbInfo.verboseFlag = verboseFlag ? 2 : 0;
} else {