summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>1999-02-07 18:53:13 +0000
committerThomas Bushnell <thomas@gnu.org>1999-02-07 18:53:13 +0000
commitab15e243cf9e178d7cee23b0ccfa6bd110aa1f18 (patch)
treefe8ed24c7cd58c35c0db22adc7415dd1095d5723
parenta41e8964db998573319dc405283e4238d9f406b3 (diff)
1999-02-05 Mark Kettenis <kettenis@gnu.org>
* open.c (trivfs_open): Correctly initialize NEW->isroot.
-rw-r--r--libtrivfs/ChangeLog4
-rw-r--r--libtrivfs/open.c5
2 files changed, 6 insertions, 3 deletions
diff --git a/libtrivfs/ChangeLog b/libtrivfs/ChangeLog
index 205262b5..e9e83977 100644
--- a/libtrivfs/ChangeLog
+++ b/libtrivfs/ChangeLog
@@ -1,3 +1,7 @@
+1999-02-05 Mark Kettenis <kettenis@gnu.org>
+
+ * open.c (trivfs_open): Correctly initialize NEW->isroot.
+
Sun Jan 31 18:29:22 1999 Thomas Bushnell, BSG <tb@mit.edu>
* times.c (trivfs_set_atime, trivefs_set_mtime): Take advantage of
diff --git a/libtrivfs/open.c b/libtrivfs/open.c
index d28af8cf..f1eab14d 100644
--- a/libtrivfs/open.c
+++ b/libtrivfs/open.c
@@ -1,6 +1,6 @@
/* Make a new trivfs peropen/protid
- Copyright (C) 1993, 1994, 1995, 1996 Free Software Foundation, Inc.
+ Copyright (C) 1993, 1994, 1995, 1996, 1999 Free Software Foundation, Inc.
This file is part of the GNU Hurd.
@@ -56,8 +56,7 @@ trivfs_open (struct trivfs_control *cntl,
if (! err)
{
new->user = user;
- if (idvec_contains (user->uids, 0))
- new->isroot = 1;
+ new->isroot idvec_contains (user->uids, 0);
new->po = po;
new->hook = 0;