1
0
Fork 0
mirror of https://gitlab.com/sortix/sortix.git synced 2023-02-13 20:55:38 -05:00

Fix incorrect check for zero output block size in rw(1).

This commit is contained in:
Jonas 'Sortie' Termansen 2018-04-02 14:54:11 +02:00
parent 23438327b5
commit 6d15ed575f

View file

@ -461,7 +461,7 @@ int main(int argc, char *argv[])
output_blksize = parse_size_t(output_blksize_str, output_blksize = parse_size_t(output_blksize_str,
input_st.st_blksize, input_st.st_blksize,
output_st.st_blksize); output_st.st_blksize);
if ( input_blksize == 0 ) if ( output_blksize == 0 )
errx(1, "the output block size cannot be zero"); errx(1, "the output block size cannot be zero");
off_t input_offset = 0; off_t input_offset = 0;