diff options
author | Eric Andersen <andersen@codepoet.org> | 2000-07-06 22:51:35 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2000-07-06 22:51:35 +0000 |
commit | 8845adc545e4398d7ba03c1f286775ad37cdbd77 (patch) | |
tree | 9170754e49961f4473b60a8c9dc9cc2d6f3c5f1f | |
parent | 02bc25be56606b3a6c66225687f848f8968a5dff (diff) | |
download | busybox-w32-8845adc545e4398d7ba03c1f286775ad37cdbd77.tar.gz busybox-w32-8845adc545e4398d7ba03c1f286775ad37cdbd77.tar.bz2 busybox-w32-8845adc545e4398d7ba03c1f286775ad37cdbd77.zip |
* Fixed tar creation support when reading from stdin ('tar -cf - . ')
thanks to Daniel Quinlan <quinlan@transmeta.com>
-Erik
-rw-r--r-- | Changelog | 2 | ||||
-rw-r--r-- | archival/tar.c | 2 | ||||
-rw-r--r-- | tar.c | 2 |
3 files changed, 6 insertions, 0 deletions
@@ -3,6 +3,8 @@ | |||
3 | * Fixed a _horrible_ bug where 'tar -tvf' could unlink | 3 | * Fixed a _horrible_ bug where 'tar -tvf' could unlink |
4 | local files!!! Fix thanks to Marius Groeger <mgroeger@sysgo.de> | 4 | local files!!! Fix thanks to Marius Groeger <mgroeger@sysgo.de> |
5 | * Fixed a nasty bug in tar when could mess up saved symlinks. | 5 | * Fixed a nasty bug in tar when could mess up saved symlinks. |
6 | * Fixed tar creation support when reading from stdin ('tar -cf - . ') | ||
7 | thanks to Daniel Quinlan <quinlan@transmeta.com> | ||
6 | * Updates to handle Linux 2.4.0 kernels (kludged around the | 8 | * Updates to handle Linux 2.4.0 kernels (kludged around the |
7 | "none" entries in /proc/mounts, added a hack to make sysinfo | 9 | "none" entries in /proc/mounts, added a hack to make sysinfo |
8 | work with both old and new kernels). | 10 | work with both old and new kernels). |
diff --git a/archival/tar.c b/archival/tar.c index 611bbd9a0..af017d112 100644 --- a/archival/tar.c +++ b/archival/tar.c | |||
@@ -198,6 +198,8 @@ extern int tar_main(int argc, char **argv) | |||
198 | tarName = *(++argv); | 198 | tarName = *(++argv); |
199 | if (tarName == NULL) | 199 | if (tarName == NULL) |
200 | fatalError( "Option requires an argument: No file specified\n"); | 200 | fatalError( "Option requires an argument: No file specified\n"); |
201 | if (!strcmp(tarName, "-")) | ||
202 | tostdoutFlag = TRUE; | ||
201 | stopIt=TRUE; | 203 | stopIt=TRUE; |
202 | break; | 204 | break; |
203 | 205 | ||
@@ -198,6 +198,8 @@ extern int tar_main(int argc, char **argv) | |||
198 | tarName = *(++argv); | 198 | tarName = *(++argv); |
199 | if (tarName == NULL) | 199 | if (tarName == NULL) |
200 | fatalError( "Option requires an argument: No file specified\n"); | 200 | fatalError( "Option requires an argument: No file specified\n"); |
201 | if (!strcmp(tarName, "-")) | ||
202 | tostdoutFlag = TRUE; | ||
201 | stopIt=TRUE; | 203 | stopIt=TRUE; |
202 | break; | 204 | break; |
203 | 205 | ||