sbase

suckless unix tools
git clone git://git.2f30.org/sbase
Log | Files | Refs | README | LICENSE

commit c5f10c4b06128b37f6ebce92531868b3a7a86519
parent 2c75eb98d9b4623f787a3c9bc97c6f29a0f4d59c
Author: David Galos <galosd83@students.rowan.edu>
Date:   Thu, 18 Jul 2013 11:52:01 -0400

Fixing idiotic mistake in tar

Diffstat:
Mtar.c | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/tar.c b/tar.c @@ -61,7 +61,7 @@ usage(void) int main(int argc, char *argv[]) { - char *file, *dir, *ap; + char *file = NULL, *dir = ".", *ap; char mode = '\0'; ARGBEGIN { @@ -125,8 +125,7 @@ main(int argc, char *argv[]) tarfile = (mode == 'c') ? stdout : stdin; } - if(dir) - chdir(dir); + chdir(dir); if(mode == 'c') { c(argv[0]);