mirror of
https://git.openafs.org/openafs.git
synced 2025-01-21 00:10:15 +00:00
OpenBSD: No ruid/rgid in cred structure.
OpenBSD does not retain ruid or rgid values in the afs_creds_t structure (ucred). This patch, therefore, removes any references to them in the afs.h file. Since no attempt is made to actually use the removed code (or macros) on OpenBSD, at least at this time, this does not result in any real functional change. Change-Id: Iaceb792f0c39ba6f7caa205bc66af16a23193549 Reviewed-on: http://gerrit.openafs.org/3687 Tested-by: BuildBot <buildbot@rampaginggeek.com> Reviewed-by: Derrick Brashear <shadow@dementia.org>
This commit is contained in:
parent
646a6a4169
commit
a5441776b6
@ -1473,8 +1473,10 @@ extern int afsd_dynamic_vcaches;
|
||||
#elif !(defined(AFS_LINUX26_ENV) && defined(STRUCT_TASK_STRUCT_HAS_CRED))
|
||||
#define afs_cr_uid(cred) ((cred)->cr_uid)
|
||||
#define afs_cr_gid(cred) ((cred)->cr_gid)
|
||||
#if !defined(AFS_OBSD_ENV)
|
||||
#define afs_cr_ruid(cred) ((cred)->cr_ruid)
|
||||
#define afs_cr_rgid(cred) ((cred)->cr_rgid)
|
||||
#endif
|
||||
|
||||
static_inline void
|
||||
afs_set_cr_uid(afs_ucred_t *cred, uid_t uid) {
|
||||
@ -1484,6 +1486,7 @@ static_inline void
|
||||
afs_set_cr_gid(afs_ucred_t *cred, gid_t gid) {
|
||||
cred->cr_gid = gid;
|
||||
}
|
||||
#if !defined(AFS_OBSD_ENV)
|
||||
static_inline void
|
||||
afs_set_cr_ruid(afs_ucred_t *cred, uid_t uid) {
|
||||
cred->cr_ruid = uid;
|
||||
@ -1493,6 +1496,7 @@ afs_set_cr_rgid(afs_ucred_t *cred, gid_t gid) {
|
||||
cred->cr_rgid = gid;
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef AFS_SUN5_ENV
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user