diff options
author | Thomas Bushnell <thomas@gnu.org> | 1999-02-07 18:53:13 +0000 |
---|---|---|
committer | Thomas Bushnell <thomas@gnu.org> | 1999-02-07 18:53:13 +0000 |
commit | ab15e243cf9e178d7cee23b0ccfa6bd110aa1f18 (patch) | |
tree | fe8ed24c7cd58c35c0db22adc7415dd1095d5723 /libtrivfs/open.c | |
parent | a41e8964db998573319dc405283e4238d9f406b3 (diff) | |
download | hurd-ab15e243cf9e178d7cee23b0ccfa6bd110aa1f18.tar.gz hurd-ab15e243cf9e178d7cee23b0ccfa6bd110aa1f18.tar.bz2 hurd-ab15e243cf9e178d7cee23b0ccfa6bd110aa1f18.zip |
1999-02-05 Mark Kettenis <kettenis@gnu.org>
* open.c (trivfs_open): Correctly initialize NEW->isroot.
Diffstat (limited to 'libtrivfs/open.c')
-rw-r--r-- | libtrivfs/open.c | 5 |
1 files changed, 2 insertions, 3 deletions
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; |