X-Git-Url: https://git.distorted.org.uk/~mdw/checkpath/blobdiff_plain/5dd9935685d513d9d7c61e4d80459de2bc27af67..263d6e0d5b3272ea76ed646258ee945fae8a096f:/checkpath.c diff --git a/checkpath.c b/checkpath.c index b6ee94e..4e89668 100644 --- a/checkpath.c +++ b/checkpath.c @@ -7,7 +7,7 @@ * (c) 1999 Mark Wooding */ -/*----- Licensing notice --------------------------------------------------* +/*----- Licensing notice --------------------------------------------------* * * This file is part of chkpath. * @@ -15,12 +15,12 @@ * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. - * + * * chkpath is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License * along with chkpath; if not, write to the Free Software Foundation, * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. @@ -499,7 +499,7 @@ void checkpath_setids(struct checkpath *cp) cp->cp_uid = getuid(); n = getgroups(sizeof(cp->cp_gid) / sizeof(cp->cp_gid[0]), cp->cp_gid); - + for (i = 0; i < n; i++) { if (cp->cp_gid[i] == g) goto gid_ok;