mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
Endless loop in zpool_do_remove() on platforms with unsigned char
On systems where "char" is an unsigned type the value returned by getopt() will never be negative (-1), leading to an endless loop: this issue prevents both 'zpool remove' and 'zstreamdump' for working on some systems. Reviewed-by: Igor Kozhukhov <igor@dilos.org> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Chris Dunlop <chris@onthe.net.au> Signed-off-by: loli10K <ezomori.nozomu@gmail.com> Closes #8789
This commit is contained in:
committed by
Brian Behlendorf
parent
69ae34076f
commit
51de7ccb42
@@ -973,7 +973,7 @@ zpool_do_remove(int argc, char **argv)
|
||||
int i, ret = 0;
|
||||
zpool_handle_t *zhp = NULL;
|
||||
boolean_t stop = B_FALSE;
|
||||
char c;
|
||||
int c;
|
||||
boolean_t noop = B_FALSE;
|
||||
boolean_t parsable = B_FALSE;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user