summaryrefslogtreecommitdiff
path: root/libtrivfs/file-chauthor.c
diff options
context:
space:
mode:
Diffstat (limited to 'libtrivfs/file-chauthor.c')
-rw-r--r--libtrivfs/file-chauthor.c9
1 files changed, 4 insertions, 5 deletions
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;
+}
+