diff options
author | Michael I. Bushnell <mib@gnu.org> | 1995-03-17 17:24:55 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1995-03-17 17:24:55 +0000 |
commit | 5d88d1bbdd10d22a5df7b22fe5e89eb19ceb8f05 (patch) | |
tree | 26e77ef81fd99c666e124d071fa910de1ff94a7a /libdiskfs | |
parent | 45daf2c18f04e2829f8f2cc7f29cf0a59bf8d498 (diff) |
(_diskfs_idcheckdirmod): `cred' -> `id'.
(diskfs_idhasgid): Likewise.
Diffstat (limited to 'libdiskfs')
-rw-r--r-- | libdiskfs/diskfs.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libdiskfs/diskfs.h b/libdiskfs/diskfs.h index 83579d4e..3d432dc6 100644 --- a/libdiskfs/diskfs.h +++ b/libdiskfs/diskfs.h @@ -645,8 +645,8 @@ diskfs_idhasgid (uid_t grp, struct userid *id) { int i; - for (i = 0; i < cred->ngids; i++) - if (cred->gids[i] == grp) + for (i = 0; i < id->ngids; i++) + if (id->gids[i] == grp) return 1; return 0; } @@ -706,7 +706,7 @@ _diskfs_idcheckdirmod (struct node *dp, struct node *np, return (_diskfs_idaccess (dp, S_IWRITE, id) && (!(dp->dn_stat.st_mode & S_ISVTX) || !np || diskfs_hasuid (0, id) || _diskfs_idisowner (dp, id) - || _diskfs_idisowner (np, cred))); + || _diskfs_idisowner (np, id))); } /* Return if the calling user CRED should be permitted to do an owner |