]> git.armaanb.net Git - opendoas.git/blobdiff - doas.c
refine a comment
[opendoas.git] / doas.c
diff --git a/doas.c b/doas.c
index a4d79841651513f5957f9a24418e4f0af088aa07..5fd53c063fdb002db96b6857c481706c62d9daf0 100644 (file)
--- a/doas.c
+++ b/doas.c
@@ -1,4 +1,4 @@
-/* $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>
  *
@@ -143,7 +143,8 @@ permit(uid_t uid, gid_t *groups, int ngroups, struct rule **lastr,
 
        *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)
@@ -183,8 +184,7 @@ parseconfig(const char *filename, int checkperms)
 }
 
 /*
- * 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,