then a commit that says:
add a -C option to check config files without running. ok halex
then *this* commit:
use setresuid to be explicit. suggested by deraadt
-/* $OpenBSD: doas.c,v 1.15 2015/07/21 11:04:06 zhuk Exp $ */
+/* $OpenBSD: doas.c,v 1.16 2015/07/21 16:12:04 tedu Exp $ */
/*
* Copyright (c) 2015 Ted Unangst <tedu@openbsd.org>
*
while ((ch = getopt(argc, argv, "C:su:")) != -1) {
switch (ch) {
case 'C':
- setuid(getuid());
+ target = getuid();
+ setresuid(target, target, target);
parseconfig(optarg);
exit(0);
case 'u':