From d814ad65e9ee53b1ec164c8897289054ba4a547a Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Mon, 14 Feb 1994 22:01:08 +0000 Subject: Formerly file-getcontrol.c.~3~ --- libdiskfs/file-getcontrol.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/libdiskfs/file-getcontrol.c b/libdiskfs/file-getcontrol.c index d9e3fc5d..ac936353 100644 --- a/libdiskfs/file-getcontrol.c +++ b/libdiskfs/file-getcontrol.c @@ -16,7 +16,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "priv.h" -#include "fs_S." +#include "fs_S.h" /* Implement file_getcontrol as described in . */ error_t @@ -29,12 +29,11 @@ diskfs_S_file_getcontrol (struct protid *cred, if (!cred) return EOPNOTSUPP; - if (!isuid (0, cred)) + if (!diskfs_isuid (0, cred)) error = EPERM; else { - /* XXX nosenders race */ - *control = fs_control_port; + *control = ports_get_right (diskfs_control_port); *controltype = MACH_MSG_TYPE_MAKE_SEND; } -- cgit v1.2.3