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

Fix implicit fallthrough warning and add break to default cases.

This commit is contained in:
Todd C. Miller 2020-06-20 14:11:40 -06:00
parent 5e9346d4e9
commit 1cec928d17

View File

@ -80,7 +80,9 @@ set_project(struct passwd *pw)
break;
default:
sudo_warnx(U_("could not join project \"%s\""), proj.pj_name);
break;
}
break;
case SETPROJ_ERR_POOL:
switch (errno) {
case EACCES:
@ -94,6 +96,7 @@ set_project(struct passwd *pw)
default:
sudo_warnx(U_("could not bind to default resource pool for "
"project \"%s\""), proj.pj_name);
break;
}
break;
default:
@ -103,6 +106,7 @@ set_project(struct passwd *pw)
sudo_warnx(U_("warning, resource control assignment failed for "
"project \"%s\""), proj.pj_name);
}
break;
}
} else {
sudo_warn("getdefaultproj");