Reduce a level of indent by a few placed continue statements.
This commit is contained in:
@@ -273,7 +273,8 @@ main(argc, argv)
|
|||||||
printf("\nEntries for user %s:\n", user_name);
|
printf("\nEntries for user %s:\n", user_name);
|
||||||
matched = UNSPEC;
|
matched = UNSPEC;
|
||||||
for (us = userspecs; us != NULL; us = us->next) {
|
for (us = userspecs; us != NULL; us = us->next) {
|
||||||
if (user_matches(sudo_user.pw, us->user) == TRUE) {
|
if (user_matches(sudo_user.pw, us->user) != TRUE)
|
||||||
|
continue;
|
||||||
for (priv = us->privileges; priv != NULL; priv = priv->next) {
|
for (priv = us->privileges; priv != NULL; priv = priv->next) {
|
||||||
putchar('\n');
|
putchar('\n');
|
||||||
print_privilege(priv);
|
print_privilege(priv);
|
||||||
@@ -293,9 +294,7 @@ main(argc, argv)
|
|||||||
rval == DENY ? "denied" : "unmatched");
|
rval == DENY ? "denied" : "unmatched");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else
|
} else puts("\thost unmatched");
|
||||||
puts("\thost unmatched");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
printf("\nCommand %s\n", matched == TRUE ? "allowed" :
|
printf("\nCommand %s\n", matched == TRUE ? "allowed" :
|
||||||
|
Reference in New Issue
Block a user