summaryrefslogtreecommitdiff
path: root/libdiskfs/file-chown.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdiskfs/file-chown.c')
-rw-r--r--libdiskfs/file-chown.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libdiskfs/file-chown.c b/libdiskfs/file-chown.c
index c2e13384..0a614338 100644
--- a/libdiskfs/file-chown.c
+++ b/libdiskfs/file-chown.c
@@ -41,6 +41,8 @@ diskfs_S_file_chown (struct protid *cred,
{
np->dn_stat.st_uid = uid;
np->dn_stat.st_gid = gid;
+ if (np->author_tracks_uid)
+ np->dn_stat.st_author = uid;
np->dn_set_ctime = 1;
}
}