diff options
author | Thomas Bushnell <thomas@gnu.org> | 1996-11-18 23:55:58 +0000 |
---|---|---|
committer | Thomas Bushnell <thomas@gnu.org> | 1996-11-18 23:55:58 +0000 |
commit | e7c792104650598a20172427df71c76fff36659d (patch) | |
tree | fd06516e96e8da9bbe1a40844a8beff95f7576e1 /libtrivfs/io-restrict-auth.c | |
parent | 1a10b3582fd24d7ac8b70e3ad610d8a7fccaf3c6 (diff) | |
download | hurd-e7c792104650598a20172427df71c76fff36659d.tar.gz hurd-e7c792104650598a20172427df71c76fff36659d.tar.bz2 hurd-e7c792104650598a20172427df71c76fff36659d.zip |
Mon Nov 18 18:13:42 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
* io-stat.c (trivfs_S_io_stat): Make the mode specify IFCHR by
default.
Sat Nov 16 17:20:15 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
* Makefile (HURDLIBS): Add `iohelp'.
Thu Nov 14 13:13:10 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
* io-restrict-auth.c (trivfs_S_io_restrict_auth): idvec_set ->
idvec_set_ids. Fix unrelated typos.
* protid-dup.c (trivfs_protid_dup): Use iouser_dup_iouser instead
of copying old arrays by hand.
* protid-clean.c (trivfs_clean_protid): Free CRED->user instead of
CRED->uids and CRED->gids.
* io-reauthenticate.c (trivfs_S_io_reauthenticate): Args for
io_restrict_auth now come from the new structure definitions.
* open.c (trivfs_open): Pass correct first arg to idvec_contains.
* open.c (trivfs_open): Delete variable I.
* trivfs.h: Include <hurd/iohelp.h>
Diffstat (limited to 'libtrivfs/io-restrict-auth.c')
-rw-r--r-- | libtrivfs/io-restrict-auth.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libtrivfs/io-restrict-auth.c b/libtrivfs/io-restrict-auth.c index 947f6953..a1324410 100644 --- a/libtrivfs/io-restrict-auth.c +++ b/libtrivfs/io-restrict-auth.c @@ -60,14 +60,14 @@ trivfs_S_io_restrict_auth (struct trivfs_protid *cred, if (cred->isroot) { /* CRED has root access, and so may use any ids. */ - idvec_set (uvec, uids, nuids); - idvec_set (gvec, gids, ngids); + idvec_set_ids (uvec, uids, nuids); + idvec_set_ids (gvec, gids, ngids); } else { /* Otherwise, use any of the requested ids that CRED already has. */ for (i = 0; i < cred->user->uids->num; i++) - if (listmember (uids, cred->user->uids->id[i], nuids)) + if (listmember (uids, cred->user->uids->ids[i], nuids)) idvec_add (uvec, cred->user->uids->ids[i]); for (i = 0; i < cred->user->gids->num; i++) if (listmember (gids, cred->user->gids->ids[i], ngids)) @@ -80,7 +80,7 @@ trivfs_S_io_restrict_auth (struct trivfs_protid *cred, &newcred); if (err) { - iouser_free_iouser (user); + iohelp_free_iouser (user); return err; } |