From 47ff61be95325dd4e642fd1fb9cc9de11d84aeb8 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Thu, 16 Jun 1994 01:49:33 +0000 Subject: Formerly io-restrict-auth.c.~7~ --- libtrivfs/io-restrict-auth.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libtrivfs/io-restrict-auth.c b/libtrivfs/io-restrict-auth.c index 33ff5e46..2d928cbf 100644 --- a/libtrivfs/io-restrict-auth.c +++ b/libtrivfs/io-restrict-auth.c @@ -21,6 +21,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "priv.h" #include "io_S.h" +#include /* Tell if the array LIST (of size N) contains a member equal to QUERY. */ static inline int @@ -53,7 +54,7 @@ trivfs_S_io_restrict_auth (struct trivfs_protid *cred, for (i = newnuids = 0; i < cred->nuids; i++) if (listmember (uids, cred->uids[i], nuids)) newuids[newnuids++] = cred->uids[i]; - for (i = newngids = 0; i < cred->gids[i], ngids) + for (i = newngids = 0; i < cred->gids[i]; i++) if (listmember (gids, cred->gids[i], ngids)) newgids[newngids++] = cred->gids[i]; -- cgit v1.2.3