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-stable-1_4_12pre3~18 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=30c09c48dae647bd152795ff8676310284279ac9;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 (cherry picked from commit a97fffc08a02ad8583c7f7b50d41fe07c93520b8) Reviewed-on: http://gerrit.openafs.org/1193 --- diff --git a/src/afs/afs_pioctl.c b/src/afs/afs_pioctl.c index 7026e4acb..206d60ad2 100644 --- a/src/afs/afs_pioctl.c +++ b/src/afs/afs_pioctl.c @@ -3881,7 +3881,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);