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:
Eric Andersen 2002-10-26 10:05:37 +00:00
parent 5ad22c933c
commit 18921bd00d

View File

@ -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 {