Skip to content

Commit

Permalink
Silence possibly inadequate space warning with -f and -q options.
Browse files Browse the repository at this point in the history
  • Loading branch information
ckolivas committed May 16, 2018
1 parent 50cfb3b commit d9aea48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rzip.c
Original file line number Diff line number Diff line change
Expand Up @@ -964,7 +964,7 @@ void rzip_fd(rzip_control *control, int fd_in, int fd_out)
free_space = (i64)fbuf.f_bsize * (i64)fbuf.f_bavail;
if (free_space < control->st_size) {
if (FORCE_REPLACE)
print_err("Warning, possibly inadequate free space detected, but attempting to compress due to -f option being used.\n");
print_output("Warning, possibly inadequate free space detected, but attempting to compress due to -f option being used.\n");
else {
dealloc(st);
failure("Possibly inadequate free space to compress file, use -f to override.\n");
Expand Down

0 comments on commit d9aea48

Please sign in to comment.