diff options
author | Michael I. Bushnell <mib@gnu.org> | 1994-02-17 22:18:40 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1994-02-17 22:18:40 +0000 |
commit | bb0410f608a0e4cc23679fb5711f956629345206 (patch) | |
tree | 268d49bee73812e1dbd70ae9a85b98f7920bff41 /libtrivfs/file-chauthor.c | |
parent | c1e7110a073c816cade38adf334d2a0cd460879f (diff) |
Formerly file-chauthor.c.~2~
Diffstat (limited to 'libtrivfs/file-chauthor.c')
-rw-r--r-- | libtrivfs/file-chauthor.c | 9 |
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; +} + |