opendoas

A portable version of the OpenBSD `doas` command
git clone https://pi.duncano.de/git/opendoas.git
Log | Files | Refs | README | LICENSE

commit 555da719ab036a43d3ec8636840f5e74e1ff97e0
parent 33a5cf1a72120776a43f0557d71511bc43326c50
Author: tedu <tedu>
Date:   Fri, 24 Jun 2016 20:49:56 +0000

move a space to the correct spot

Diffstat:
doas.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/doas.c b/doas.c @@ -328,7 +328,7 @@ main(int argc, char **argv) parseconfig("/etc/doas.conf", 1); /* cmdline is used only for logging, no need to abort on truncate */ - (void) strlcpy(cmdline, argv[0], sizeof(cmdline)); + (void)strlcpy(cmdline, argv[0], sizeof(cmdline)); for (i = 1; i < argc; i++) { if (strlcat(cmdline, " ", sizeof(cmdline)) >= sizeof(cmdline)) break; @@ -338,7 +338,7 @@ main(int argc, char **argv) cmd = argv[0]; if (!permit(uid, groups, ngroups, &rule, target, cmd, - (const char**)argv + 1)) { + (const char **)argv + 1)) { syslog(LOG_AUTHPRIV | LOG_NOTICE, "failed command for %s: %s", myname, cmdline); errc(1, EPERM, NULL);