From bb0410f608a0e4cc23679fb5711f956629345206 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Thu, 17 Feb 1994 22:18:40 +0000 Subject: Formerly file-chauthor.c.~2~ --- libtrivfs/file-chauthor.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'libtrivfs/file-chauthor.c') diff --git a/libtrivfs/file-chauthor.c b/libtrivfs/file-chauthor.c index b01a7388..eedfa8c5 100644 --- a/libtrivfs/file-chauthor.c +++ b/libtrivfs/file-chauthor.c @@ -18,10 +18,9 @@ #include "priv.h" error_t -trivfs_file_chauthor (struct protid *cred, +trivfs_S_file_chauthor (struct protid *cred, uid_t auth) { - spin_lock (&trivfs_nodelock); - if (trivfs_isowner (cred)) - { - trivfs_stat.st_author = + return cred ? file_chauthor (cred->realnode, uid, gid) : EOPNOTSUPP; +} + -- cgit v1.2.3