mirror of
https://github.com/ckolivas/lrzip.git
synced 2026-01-01 22:29:55 +01:00
Put tempfiles in /tmp rather than current directory.
This commit is contained in:
parent
025b4507c9
commit
603785f783
8
main.c
8
main.c
|
|
@ -148,8 +148,8 @@ static int open_tmpoutfile(void)
|
|||
|
||||
if ((control.flags & FLAG_STDOUT) && (control.flags & FLAG_VERBOSE))
|
||||
fprintf(control.msgout, "Outputting to stdout.\n");
|
||||
control.outfile = realloc(NULL, 16);
|
||||
strcpy(control.outfile, "lrzipout.XXXXXX");
|
||||
control.outfile = realloc(NULL, 21);
|
||||
strcpy(control.outfile, "/tmp/lrzipout.XXXXXX");
|
||||
if (!control.outfile)
|
||||
fatal("Failed to allocate outfile name\n");
|
||||
|
||||
|
|
@ -185,8 +185,8 @@ static int open_tmpinfile(void)
|
|||
{
|
||||
int fd_in;
|
||||
|
||||
control.infile = malloc(15);
|
||||
strcpy(control.infile, "lrzipin.XXXXXX");
|
||||
control.infile = malloc(21);
|
||||
strcpy(control.infile, "/tmp/lrzipin.XXXXXX");
|
||||
if (!control.infile)
|
||||
fatal("Failed to allocate infile name\n");
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue