From: Dan Andresan Date: Thu, 2 Feb 2017 16:43:04 +0200 Subject: [PATCH] Fix infinite loop parsing line options on arm64 The loop happens because getopt returns -1 (no more options) which is assigned to a char. Type char on arm64 is always unsigned, so the test for ">0" will always be true. The loop thinks it has more options to parse resulting in an infinite loop. Fix simply changes the type of lvalue from char to int. Signed-off-by: Dan Andresan --- src/fuseiso.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fuseiso.c b/src/fuseiso.c index 4811730..debcb45 100644 --- a/src/fuseiso.c +++ b/src/fuseiso.c @@ -309,7 +309,7 @@ int main(int argc, char *argv[]) maintain_mtab = 1; iocharset = NULL; - char c; + int c; while((c = getopt(argc, argv, "+npc:h")) > 0) { switch(c) { case 'n':