h2olog: strtol(3) can fail for other reasons
@@ -138,7 +138,7 @@ static void drop_root_privilege(void)
errno = 0;
gid_t gid = (gid_t)strtol(sudo_gid, NULL, 10);
if (errno != 0) {
- fprintf(stderr, "Error: overflow while parsing SUDO_GID\n");
+ fprintf(stderr, "Error: failed to parse SUDO_GID\n");
exit(EXIT_FAILURE);
}
if (gid != 0 && setgid(gid) != 0) {
@@ -154,7 +154,7 @@ static void drop_root_privilege(void)
errno = 0;
uid_t uid = (uid_t)strtol(sudo_uid, NULL, 10);
if (errno != 0) {
- fprintf(stderr, "Error: overflow while parsing SUDO_UID\n");
+ fprintf(stderr, "Error: failed to parse SUDO_UID\n");
exit(EXIT_FAILURE);
}
if (uid != 0 && setuid(uid) != 0) {
