mirror of
https://github.com/ckolivas/lrzip.git
synced 2025-12-06 07:12:00 +01:00
Revert "Put tempfiles in /tmp rather than current directory."
This reverts commit 603785f783.
Not everyone has a large /tmp directory and may not be able to fit the temporary files in /tmp so it's not a great idea to do this by default.
This commit is contained in:
parent
b4dd8cdaa1
commit
de262bad2a
8
main.c
8
main.c
|
|
@ -148,8 +148,8 @@ static int open_tmpoutfile(void)
|
||||||
|
|
||||||
if ((control.flags & FLAG_STDOUT) && (control.flags & FLAG_VERBOSE))
|
if ((control.flags & FLAG_STDOUT) && (control.flags & FLAG_VERBOSE))
|
||||||
fprintf(control.msgout, "Outputting to stdout.\n");
|
fprintf(control.msgout, "Outputting to stdout.\n");
|
||||||
control.outfile = realloc(NULL, 21);
|
control.outfile = realloc(NULL, 16);
|
||||||
strcpy(control.outfile, "/tmp/lrzipout.XXXXXX");
|
strcpy(control.outfile, "lrzipout.XXXXXX");
|
||||||
if (!control.outfile)
|
if (!control.outfile)
|
||||||
fatal("Failed to allocate outfile name\n");
|
fatal("Failed to allocate outfile name\n");
|
||||||
|
|
||||||
|
|
@ -185,8 +185,8 @@ static int open_tmpinfile(void)
|
||||||
{
|
{
|
||||||
int fd_in;
|
int fd_in;
|
||||||
|
|
||||||
control.infile = malloc(21);
|
control.infile = malloc(15);
|
||||||
strcpy(control.infile, "/tmp/lrzipin.XXXXXX");
|
strcpy(control.infile, "lrzipin.XXXXXX");
|
||||||
if (!control.infile)
|
if (!control.infile)
|
||||||
fatal("Failed to allocate infile name\n");
|
fatal("Failed to allocate infile name\n");
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue