-/* $OpenBSD: doas.c,v 1.29 2015/07/28 14:08:52 zhuk Exp $ */
+/* $OpenBSD: doas.c,v 1.31 2015/07/28 21:36:03 deraadt Exp $ */
/*
* Copyright (c) 2015 Ted Unangst <tedu@openbsd.org>
*
*lastr = NULL;
for (i = 0; i < nrules; i++) {
- if (match(uid, groups, ngroups, target, cmd, cmdargs, rules[i]))
+ if (match(uid, groups, ngroups, target, cmd,
+ cmdargs, rules[i]))
*lastr = rules[i];
}
if (!*lastr)
}
/*
- * Copy to envp environment variables from oldenvp which names are
- * in safeset.
+ * Copy the environment variables in safeset from oldenvp to envp.
*/
static int
copyenvhelper(const char **oldenvp, const char **safeset, int nsafe,