diff options
author | Gilles Chehade <gilles@poolp.org> | 2019-12-01 09:15:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-01 09:15:02 +0100 |
commit | 5d2dda1080b38c0a59cb9f571871a47902342a5d (patch) | |
tree | c18449ead32373283406384bb253c80e97e6c4b5 | |
parent | Update smtpctl.c (diff) | |
download | OpenSMTPD-5d2dda1080b38c0a59cb9f571871a47902342a5d.tar.xz OpenSMTPD-5d2dda1080b38c0a59cb9f571871a47902342a5d.zip |
Update smtpctl.c
warnx->errx
-rw-r--r-- | smtpd/smtpctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/smtpd/smtpctl.c b/smtpd/smtpctl.c index 2c9deff0..1480e4dd 100644 --- a/smtpd/smtpctl.c +++ b/smtpd/smtpctl.c @@ -1072,9 +1072,9 @@ main(int argc, char **argv) /* check that smtpctl was installed setgid */ if ((gr = getgrnam(SMTPD_QUEUE_GROUP)) == NULL) - warnx("unknown group %s", SMTPD_QUEUE_GROUP); + errx(1, "unknown group %s", SMTPD_QUEUE_GROUP); else if (gr->gr_gid != getegid()) - warnx("this program must be setgid %s", SMTPD_QUEUE_GROUP); + errx(1, "this program must be setgid %s", SMTPD_QUEUE_GROUP); sendmail_compat(argc, argv); privileged = geteuid() == 0; |