cifscreds: use continue instead of break when matching commands
Subsystems (2)
PATCH 1/2 cifscreds: use continue instead of break when matching commands
From: Thiago Becker <[email protected]>
While matching the commands in cifscreds, continue attempting to match to detect ambiguous commands.
Signed-off-by Thiago Becker <[email protected]>
--- cifscreds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
cifscreds.c +1 -1
@@ -501,7 +501,7 @@ int main(int argc, char **argv)if (cmd->name[n] ==0 ) {/* exact match */ best = cmd; -break ; +continue ; }/* partial match */
Signature · 1 line
2.47.1
Quoted 9 lines · [email protected] writes:
From: Thiago Becker <[email protected]>
While matching the commands in cifscreds, continue attempting to match to detect ambiguous commands.
Signed-off-by Thiago Becker <[email protected]>--- cifscreds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by Paulo Alcantara (Red Hat) <[email protected]>