summaryrefslogtreecommitdiff
path: root/sutils
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1998-11-29 17:16:03 +0000
committerRoland McGrath <roland@gnu.org>1998-11-29 17:16:03 +0000
commit08177b292598576e8d1e9105d6492c278e2f6819 (patch)
tree664753017ca631fc158e976ccb62be04d34dfbdf /sutils
parentcdaa4c0b75817dd8d9ccc75462e213be4029839f (diff)
1998-11-28 Roland McGrath <roland@baalperazim.frob.com>
* clookup.c (file_name_lookup_carefully): Change __getuids to geteuids. Use hurd_file_name_lookup instead of __hurd_file_name_lookup.
Diffstat (limited to 'sutils')
-rw-r--r--sutils/clookup.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/sutils/clookup.c b/sutils/clookup.c
index 9d31e958..0942f3e0 100644
--- a/sutils/clookup.c
+++ b/sutils/clookup.c
@@ -30,7 +30,6 @@
#include <hurd/id.h>
#include <hurd/fsys.h>
-extern int __getuids (int num, gid_t *buf); /* XXX */
/* This function is like file_name_lookup, but tries hard to avoid starting
any passive translators. If a node with an unstarted passive translator
@@ -143,11 +142,11 @@ file_name_lookup_carefully (const char *name, int flags, mode_t mode)
}
/* Fetch uids for use with fsys_getroot. */
- num_uids = __getuids (0, 0);
+ num_uids = geteuids (0, 0);
if (num_uids < 0)
return errno;
uids = alloca (num_uids * sizeof (uid_t));
- num_uids = __getuids (num_uids, uids);
+ num_uids = geteuids (num_uids, uids);
if (num_uids < 0)
return errno;
@@ -161,9 +160,9 @@ file_name_lookup_carefully (const char *name, int flags, mode_t mode)
return errno;
/* Look things up ... */
- err = __hurd_file_name_lookup (&_hurd_ports_use, &getdport, lookup,
- name, flags, mode & ~getumask (),
- &node);
+ err = hurd_file_name_lookup (&_hurd_ports_use, &getdport, lookup,
+ name, flags, mode & ~getumask (),
+ &node);
return err ? (__hurd_fail (err), MACH_PORT_NULL) : node;
}