diff options
Diffstat (limited to 'libfshelp/perms-iscontroller.c')
-rw-r--r-- | libfshelp/perms-iscontroller.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libfshelp/perms-iscontroller.c b/libfshelp/perms-iscontroller.c index 456da2a2..0adfdf22 100644 --- a/libfshelp/perms-iscontroller.c +++ b/libfshelp/perms-iscontroller.c @@ -1,5 +1,5 @@ /* see whether a user should be considered a controller of the filesystem - Copyright (C) 2001 Free Software Foundation, Inc. + Copyright (C) 2001, 2008 Free Software Foundation, Inc. Written by Neal H Walfield <neal@cs.uml.edu>. This file is part of the GNU Hurd. @@ -30,7 +30,7 @@ fshelp_iscontroller (struct stat *st, struct iouser *user) { /* Permitted if USER has the superuser uid, the owner uid or if the USER has authority over the process's effective id. */ - if (idvec_contains (user->uids, st->st_uid) + if (idvec_contains (user->uids, 0) || idvec_contains (user->uids, st->st_uid) || idvec_contains (user->uids, geteuid ())) return 0; |