summaryrefslogtreecommitdiff
path: root/sutils
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1998-10-24 08:39:47 +0000
committerRoland McGrath <roland@gnu.org>1998-10-24 08:39:47 +0000
commitc7f1ebcc91150c79dffce3065fe205b7b938f4b0 (patch)
treef2fa0321ad88947e6381a5cfe24bd4b0683b63c6 /sutils
parent1e33d8bd37f1adf0ea5a3f0833f0897e42c3880e (diff)
1998-10-24 Roland McGrath <roland@baalperazim.frob.com>
* clookup.c (file_name_lookup_carefully): Use getdport instead of __getdport, getumask () instead of _hurd_umask.
Diffstat (limited to 'sutils')
-rw-r--r--sutils/clookup.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sutils/clookup.c b/sutils/clookup.c
index e39ddd64..9d31e958 100644
--- a/sutils/clookup.c
+++ b/sutils/clookup.c
@@ -1,6 +1,6 @@
/* Careful filename lookup
- Copyright (C) 1996 Free Software Foundation, Inc.
+ Copyright (C) 1996, 1998 Free Software Foundation, Inc.
Written by Miles Bader <miles@gnu.ai.mit.edu>
@@ -159,10 +159,10 @@ file_name_lookup_carefully (const char *name, int flags, mode_t mode)
num_gids = getgroups (num_gids, gids);
if (num_gids < 0)
return errno;
-
+
/* Look things up ... */
- err = __hurd_file_name_lookup (&_hurd_ports_use, &__getdport, lookup,
- name, flags, mode & ~_hurd_umask,
+ err = __hurd_file_name_lookup (&_hurd_ports_use, &getdport, lookup,
+ name, flags, mode & ~getumask (),
&node);
return err ? (__hurd_fail (err), MACH_PORT_NULL) : node;