2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-30 22:05:46 +00:00

sudoers/cvtsudoers: Remove the repeated ';' from code

Signed-off-by: Li kunyu <kunyu@nfschina.com>
This commit is contained in:
Li kunyu
2022-07-04 12:31:50 +08:00
parent b203753013
commit a311180bbc

View File

@@ -691,7 +691,7 @@ cvtsudoers_parse_filter(char *expression)
/* Parse keyword = value */
keyword = cp;
if ((cp = strchr(cp, '=')) == NULL) {
sudo_warnx(U_("invalid filter: %s"), keyword);;
sudo_warnx(U_("invalid filter: %s"), keyword);
free(s);
debug_return_bool(false);
}
@@ -707,7 +707,7 @@ cvtsudoers_parse_filter(char *expression)
} else if (strcmp(keyword, "cmnd") == 0 || strcmp(keyword, "cmd") == 0) {
STAILQ_INSERT_TAIL(&filters->cmnds, s, entries);
} else {
sudo_warnx(U_("invalid filter: %s"), keyword);;
sudo_warnx(U_("invalid filter: %s"), keyword);
free(s);
debug_return_bool(false);
}