Fixing idiotic mistake in tar
This commit is contained in:
parent
2c75eb98d9
commit
c5f10c4b06
5
tar.c
5
tar.c
|
@ -61,7 +61,7 @@ usage(void)
|
||||||
int
|
int
|
||||||
main(int argc, char *argv[])
|
main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
char *file, *dir, *ap;
|
char *file = NULL, *dir = ".", *ap;
|
||||||
char mode = '\0';
|
char mode = '\0';
|
||||||
|
|
||||||
ARGBEGIN {
|
ARGBEGIN {
|
||||||
|
@ -125,8 +125,7 @@ main(int argc, char *argv[])
|
||||||
tarfile = (mode == 'c') ? stdout : stdin;
|
tarfile = (mode == 'c') ? stdout : stdin;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(dir)
|
chdir(dir);
|
||||||
chdir(dir);
|
|
||||||
|
|
||||||
if(mode == 'c') {
|
if(mode == 'c') {
|
||||||
c(argv[0]);
|
c(argv[0]);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user