summaryrefslogtreecommitdiff
path: root/libdiskfs/node-create.c
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-11-20 02:56:04 +0000
committerMiles Bader <miles@gnu.org>1996-11-20 02:56:04 +0000
commite39ead619261bcace5624908075114fc5cb4e426 (patch)
tree3d01a0a7a11d6e8d589c8cdc3972ff347f8eb814 /libdiskfs/node-create.c
parent6633c5e9147f8b97e8c97f2e6677e68441ce1ba6 (diff)
(diskfs_create_node):
If NP->author_tracks_uid, modify NP->dn_stat.st_author as well.
Diffstat (limited to 'libdiskfs/node-create.c')
-rw-r--r--libdiskfs/node-create.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libdiskfs/node-create.c b/libdiskfs/node-create.c
index 1ff8ac2b..06a484d8 100644
--- a/libdiskfs/node-create.c
+++ b/libdiskfs/node-create.c
@@ -63,6 +63,8 @@ diskfs_create_node (struct node *dir,
if (err)
goto change_err;
np->dn_stat.st_uid = newuid;
+ if (np->author_tracks_uid)
+ np->dn_stat.st_author = newuid;
newgid = dir->dn_stat.st_gid;
if (!idvec_contains (cred->user->gids, newgid))