From: Jeffrey Hutzelman Date: Mon, 1 Feb 2010 21:59:14 +0000 (-0500) Subject: call afs_osi_suser correctly in PNewUuid X-Git-Tag: openafs-devel-1_5_72~75 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=a97fffc08a02ad8583c7f7b50d41fe07c93520b8;p=packages%2Fo%2Fopenafs.git call afs_osi_suser correctly in PNewUuid we were using the wrong level of indirection on acred. fixed. Change-Id: I00ab1a97b42717adc2d9d26e885b91c44103ab1d Reviewed-on: http://gerrit.openafs.org/1190 Reviewed-by: Jeffrey Hutzelman Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- diff --git a/src/afs/afs_pioctl.c b/src/afs/afs_pioctl.c index 42aa96047..3ac472b1c 100644 --- a/src/afs/afs_pioctl.c +++ b/src/afs/afs_pioctl.c @@ -4477,7 +4477,7 @@ DECL_PIOCTL(PNewUuid) if (!afs_resourceinit_flag) /* afs deamons havn't started yet */ return EIO; /* Inappropriate ioctl for device */ - if (!afs_osi_suser(acred)) + if (!afs_osi_suser(*acred)) return EACCES; ObtainWriteLock(&afs_xinterface, 555);