mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-01 00:18:15 +01:00
Fix an obviously wrong boolean operator.
PR: 200983 Submitted by: David Bindeman MFC after: 1 week
This commit is contained in:
parent
0a378964f7
commit
faf2d8305c
@ -897,7 +897,7 @@ check_parameters(void)
|
||||
NANDFS_SEG_MIN_BLOCKS);
|
||||
|
||||
/* check reserved segment percentage */
|
||||
if ((rsv_segment_percent < 1) && (rsv_segment_percent > 99))
|
||||
if ((rsv_segment_percent < 1) || (rsv_segment_percent > 99))
|
||||
errx(1, "Bad reserved segment percentage. "
|
||||
"Must in range 1..99.");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user