mirror of
https://github.com/ckolivas/lrzip.git
synced 2026-04-06 14:53:50 +00:00
Do not fail if we are unable to write temporary files, giving a warning only that it might fail if we don't have enough ram
This commit is contained in:
parent
788a70e6f6
commit
fcb64e6dbb
2 changed files with 18 additions and 14 deletions
3
stream.c
3
stream.c
|
|
@ -703,7 +703,8 @@ ssize_t read_1g(rzip_control *control, int fd, void *buf, i64 len)
|
|||
/* We're decompressing from STDIN */
|
||||
if (unlikely(control->in_ofs + len > control->in_maxlen)) {
|
||||
/* We're unable to fit it all into the temp buffer */
|
||||
dump_stdin(control);
|
||||
if (dump_stdin(control))
|
||||
failure_return(("Inadequate ram to %compress from STDIN and unable to create in tmpfile"), -1);
|
||||
goto read_fd;
|
||||
}
|
||||
if (control->in_ofs + len > control->in_len) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue