mirror of
https://git.busybox.net/busybox
synced 2026-01-31 16:43:21 +00:00
A bugfix from Danny Lepage:
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.
This commit is contained in:
parent
5ad22c933c
commit
18921bd00d
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue