summaryrefslogtreecommitdiff
path: root/ext2fs
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-11-20 02:50:48 +0000
committerMiles Bader <miles@gnu.org>1996-11-20 02:50:48 +0000
commit6a53df1ae9dca2846c4f9a712bfd22491ed30ce8 (patch)
treed6477a2b6b4fe52d2e31b4207328e41f920951ca /ext2fs
parente6a0cab7ecd60a1386be60442be688c1af56de91 (diff)
(read_node):
If SBLOCK->s_creator_os != EXT2_OS_HURD, set NP->author_tracks_uid to true.
Diffstat (limited to 'ext2fs')
-rw-r--r--ext2fs/inode.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ext2fs/inode.c b/ext2fs/inode.c
index 203adb23..9397a7c4 100644
--- a/ext2fs/inode.c
+++ b/ext2fs/inode.c
@@ -261,6 +261,7 @@ read_node (struct node *np)
st->st_uid = di->i_uid;
st->st_gid = di->i_gid;
st->st_author = st->st_uid;
+ np->author_tracks_uid = 1;
}
/* Setup the ext2fs auxiliary inode info. */
@@ -363,7 +364,7 @@ diskfs_validate_author_change (struct node *np, uid_t author)
if (sblock->s_creator_os == EXT2_OS_HURD)
return 0;
else
- /* For non-hurd filesystems, the auther & owner are the same. */
+ /* For non-hurd filesystems, the author & owner are the same. */
return (author == np->dn_stat.st_uid) ? 0 : EINVAL;
}
@@ -428,7 +429,7 @@ write_node (struct node *np)
assert ((st->st_uid & ~0xFFFF) == 0);
assert ((st->st_gid & ~0xFFFF) == 0);
assert ((st->st_mode & ~0xFFFF) == 0);
- assert (st->st_author == st->st_uid);
+ assert (np->author_tracks_uid && st->st_author == st->st_uid);
}
di->i_links_count = st->st_nlink;