summaryrefslogtreecommitdiff
path: root/libdiskfs
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-02-14 22:01:08 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-02-14 22:01:08 +0000
commitd814ad65e9ee53b1ec164c8897289054ba4a547a (patch)
tree4ef25f2cbe23b3c901c0dd2acc9a5bb43b1df462 /libdiskfs
parentfbc4307e327fad34b213c77c35b36d4e9c65b943 (diff)
Formerly file-getcontrol.c.~3~
Diffstat (limited to 'libdiskfs')
-rw-r--r--libdiskfs/file-getcontrol.c7
1 files 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 <hurd/fs.defs>. */
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;
}