summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
+}
+
+