diff options
author | Michael I. Bushnell <mib@gnu.org> | 1994-06-16 01:49:33 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1994-06-16 01:49:33 +0000 |
commit | 47ff61be95325dd4e642fd1fb9cc9de11d84aeb8 (patch) | |
tree | 87b8375869934ea246f9eb130dd9596c7189ba74 | |
parent | 6017b635a93a1da67540bec2e60edb74cd248cb1 (diff) |
Formerly io-restrict-auth.c.~7~
-rw-r--r-- | libtrivfs/io-restrict-auth.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 <string.h> /* 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]; |