diff options
-rw-r--r-- | libtrivfs/ChangeLog | 4 | ||||
-rw-r--r-- | libtrivfs/open.c | 5 |
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; |