From 6a53df1ae9dca2846c4f9a712bfd22491ed30ce8 Mon Sep 17 00:00:00 2001
From: Miles Bader <miles@gnu.org>
Date: Wed, 20 Nov 1996 02:50:48 +0000
Subject: (read_node):   If SBLOCK->s_creator_os != EXT2_OS_HURD, set
 NP->author_tracks_uid to true.

---
 ext2fs/inode.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

(limited to 'ext2fs/inode.c')

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;
-- 
cgit v1.2.3