diff --git a/plugins/sudoers/sudoreplay.c b/plugins/sudoers/sudoreplay.c index 2c2adacb5..69e5c8483 100644 --- a/plugins/sudoers/sudoreplay.c +++ b/plugins/sudoers/sudoreplay.c @@ -249,13 +249,13 @@ main(int argc, char *argv[]) errno = 0; max_wait = strtod(optarg, &ep); if (*ep != '\0' || errno != 0) - error(1, "invalid max wait: %s", optarg); + errorx(1, "invalid max wait: %s", optarg); break; case 's': errno = 0; speed = strtod(optarg, &ep); if (*ep != '\0' || errno != 0) - error(1, "invalid speed factor: %s", optarg); + errorx(1, "invalid speed factor: %s", optarg); break; case 'V': (void) printf("%s version %s\n", getprogname(), PACKAGE_VERSION); @@ -347,21 +347,21 @@ main(int argc, char *argv[]) #endif idx = strtoul(buf, &ep, 10); if (idx > IOFD_MAX) - error(1, "invalid timing file index: %s", cp); + errorx(1, "invalid timing file index: %s", cp); for (cp = ep + 1; isspace((unsigned char) *cp); cp++) continue; errno = 0; seconds = strtod(cp, &ep); if (errno != 0 || !isspace((unsigned char) *ep)) - error(1, "invalid timing file line: %s", buf); + errorx(1, "invalid timing file line: %s", buf); for (cp = ep + 1; isspace((unsigned char) *cp); cp++) continue; errno = 0; nbytes = strtoul(cp, &ep, 10); if (errno == ERANGE && nbytes == ULONG_MAX) - error(1, "invalid timing file byte count: %s", cp); + errorx(1, "invalid timing file byte count: %s", cp); if (interactive) check_input(STDIN_FILENO, &speed);