Fixing idiotic mistake in tar
This commit is contained in:
parent
2c75eb98d9
commit
c5f10c4b06
3
tar.c
3
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,7 +125,6 @@ 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') {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user