Whamcloud - gitweb
badblocks: avoid an error when -n or -w is specified twice
authorTheodore Ts'o <tytso@mit.edu>
Thu, 28 Nov 2024 03:34:57 +0000 (22:34 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 28 Nov 2024 03:34:57 +0000 (22:34 -0500)
commitc94c00eb67df9d29aee6f9fa599586d01bd84192
treeb7f0c36cbf6afeb3547fae4dcbf4cb769900b75b
parent540e4ca3a4eb92d9831d85ad5bdddca7f7f9d704
badblocks: avoid an error when -n or -w is specified twice

Fix a bug where if the user specifies the -n or -w command-line option
twice, badblocks will issue a misleading (and incorrect) error
message.

Addresses-Debian-Bug: #1087341
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/badblocks.c