summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-02-17 23:34:38 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-02-17 23:34:38 +0000
commit85d9d8bd2a0222b7e99fce1efa7896e338f50e12 (patch)
treebf455a7371fd7acc93dab900d83917b439f1fdb6
parent0c17c80eca45ff8248570a065274bbf5a7175bf0 (diff)
Formerly file-chown.c.~2~
-rw-r--r--libtrivfs/file-chown.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libtrivfs/file-chown.c b/libtrivfs/file-chown.c
index c97b04d1..d1c0aca5 100644
--- a/libtrivfs/file-chown.c
+++ b/libtrivfs/file-chown.c
@@ -15,11 +15,15 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
+#include "priv.h"
error_t
trivfs_S_file_chown (struct protid *cred,
uid_t uid,
gid_t gid)
{
- spin_lock (&trivfs_lock);
+ return cred ? file_chown (cred->realnode, uid, gid) : EOPNOTSUPP;
+}
+
+