summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkrw <krw@openbsd.org>2017-01-21 08:18:53 +0000
committerkrw <krw@openbsd.org>2017-01-21 08:18:53 +0000
commit4500627adf0a5648802c0d1c2648ae2f12f1f68d (patch)
tree25a1d4835d414d97ffa00b3f1ab90e0a88a47a98
parentNuke whitespace foolish enough to expose itself during the great (diff)
downloadwireguard-openbsd-4500627adf0a5648802c0d1c2648ae2f12f1f68d.tar.xz
wireguard-openbsd-4500627adf0a5648802c0d1c2648ae2f12f1f68d.zip
Nuke whitespace foolish enough to expose itself during the great
"warning:" rectification.
-rw-r--r--distrib/special/doas/doas.c4
-rw-r--r--distrib/special/libstubs/db.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/distrib/special/doas/doas.c b/distrib/special/doas/doas.c
index 031422a93e7..c2fab7d4574 100644
--- a/distrib/special/doas/doas.c
+++ b/distrib/special/doas/doas.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: doas.c,v 1.2 2016/12/15 20:32:44 krw Exp $ */
+/* $OpenBSD: doas.c,v 1.3 2017/01/21 08:18:53 krw Exp $ */
/*
* Copyright (c) 2015 Ted Unangst <tedu@openbsd.org>
*
@@ -97,7 +97,7 @@ main(int argc, char **argv)
if (setgroups(1, groups) ||
setresgid(pw->pw_gid, pw->pw_gid, pw->pw_gid) ||
setresuid(pw->pw_uid, pw->pw_uid, pw->pw_uid))
- err(1, "failed to change user");
+ err(1, "failed to change user");
execvp(cmd, argv);
if (errno == ENOENT)
diff --git a/distrib/special/libstubs/db.c b/distrib/special/libstubs/db.c
index d14ccacc438..61b39f2abb5 100644
--- a/distrib/special/libstubs/db.c
+++ b/distrib/special/libstubs/db.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: db.c,v 1.3 2016/12/20 22:19:08 krw Exp $ */
+/* $OpenBSD: db.c,v 1.4 2017/01/21 08:18:53 krw Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -47,7 +47,7 @@ dbopen(const char *fname, int flags, int mode, DBTYPE type,
#define DB_FLAGS (DB_LOCK | DB_SHMEM | DB_TXN)
#define USE_OPEN_FLAGS \
- (O_CREAT | O_EXCL | O_EXLOCK | O_NOFOLLOW | O_NONBLOCK | \
+ (O_CREAT | O_EXCL | O_EXLOCK | O_NOFOLLOW | O_NONBLOCK | \
O_RDONLY | O_RDWR | O_SHLOCK | O_SYNC | O_TRUNC)
if ((flags & ~(USE_OPEN_FLAGS | DB_FLAGS)) == 0)