aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortedu <tedu>2016-06-24 20:49:56 +0000
committerDuncaen <mail@duncano.de>2016-06-27 21:46:31 +0200
commit555da719ab036a43d3ec8636840f5e74e1ff97e0 (patch)
tree2fd660d10ccec35e73e5a121394fe44571952422
parent33a5cf1a72120776a43f0557d71511bc43326c50 (diff)
downloadopendoas-555da719ab036a43d3ec8636840f5e74e1ff97e0.tar.gz
move a space to the correct spot
-rw-r--r--doas.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/doas.c b/doas.c
index b5f8049..c1b822b 100644
--- 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);