From 85d9d8bd2a0222b7e99fce1efa7896e338f50e12 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Thu, 17 Feb 1994 23:34:38 +0000 Subject: Formerly file-chown.c.~2~ --- libtrivfs/file-chown.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; +} + + -- cgit v1.2.3