summaryrefslogtreecommitdiff
path: root/libdiskfs/file-chown.c
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-11-20 02:57:38 +0000
committerMiles Bader <miles@gnu.org>1996-11-20 02:57:38 +0000
commit62fe5978be4fc1827af6e9dd54ad3ae2f9c7168c (patch)
treeb78cee644a4445282d01b50a2dde8297c7d8d26a /libdiskfs/file-chown.c
parent08c5fd995d8f7fdd89511912c0d077d415b49b86 (diff)
(diskfs_S_file_chown):
If NP->author_tracks_uid, modify NP->dn_stat.st_author as well.
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;
}
}