From ab15e243cf9e178d7cee23b0ccfa6bd110aa1f18 Mon Sep 17 00:00:00 2001 From: Thomas Bushnell Date: Sun, 7 Feb 1999 18:53:13 +0000 Subject: 1999-02-05 Mark Kettenis * open.c (trivfs_open): Correctly initialize NEW->isroot. --- libtrivfs/open.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'libtrivfs/open.c') 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; -- cgit v1.2.3