diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2022-03-22 20:36:50 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2022-03-22 20:36:50 +0000 |
commit | 4eb22c6f90c5fe210b5cc765036d2f57e972ddee (patch) | |
tree | 54ec71fa7cc732b0b47179f5536b45cfa90988c8 /usr.bin/doas/doas.c | |
parent | 3f6b52b1f3f99569c39dbdbe3e3e45d3484eaa33 (diff) |
minor KNF cleanups during a re-read
Diffstat (limited to 'usr.bin/doas/doas.c')
-rw-r--r-- | usr.bin/doas/doas.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/doas/doas.c b/usr.bin/doas/doas.c index f84e54f09e0..5fd9a2b7417 100644 --- a/usr.bin/doas/doas.c +++ b/usr.bin/doas/doas.c @@ -1,4 +1,4 @@ -/* $OpenBSD: doas.c,v 1.96 2022/03/04 05:37:21 tb Exp $ */ +/* $OpenBSD: doas.c,v 1.97 2022/03/22 20:36:49 deraadt Exp $ */ /* * Copyright (c) 2015 Ted Unangst <tedu@openbsd.org> * @@ -212,6 +212,7 @@ authuser_checkpass(char *myname, char *login_style) } if (!challenge) { char host[HOST_NAME_MAX + 1]; + if (gethostname(host, sizeof(host))) snprintf(host, sizeof(host), "?"); snprintf(cbuf, sizeof(cbuf), |