From f3170cdd316387d2318b9e63229b28155f6b7c61 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Wed, 17 Jul 1996 01:30:39 +0000 Subject: (trivfs_S_file_chmod): Bother to return a value. --- term/users.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'term') diff --git a/term/users.c b/term/users.c index 62314303..dd0c7cdb 100644 --- a/term/users.c +++ b/term/users.c @@ -484,6 +484,7 @@ trivfs_S_file_chmod (struct trivfs_protid *cred, if (!cred) return EOPNOTSUPP; + mutex_lock (&global_lock); for (i = 0; i < cred->nuids; i++) if (cred->isroot || cred->uids[i] == term_owner) { @@ -505,7 +506,11 @@ trivfs_S_file_chmod (struct trivfs_protid *cred, } term_mode = (mode | S_IFCHR); + mutex_unlock (&global_lock); + return 0; } + mutex_unlock (&global_lock); + return EPERM; } -- cgit v1.2.3