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:
parent
23438327b5
commit
6d15ed575f
1 changed files with 1 additions and 1 deletions
2
rw/rw.c
2
rw/rw.c
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue