summaryrefslogtreecommitdiff
path: root/misc/mke2fs.c
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2008-01-21 09:45:25 -0500
committerTed Tso <tytso@proc.local>2008-01-21 09:46:05 -0500
commit153439222e6a16e40be324408d8d19361bc1e65e (patch)
tree38178c6d1d3dbb2fef1b55d9e803b0a5c48de458 /misc/mke2fs.c
parentf8897f4efe9d2103de42470b0d68429b055332bc (diff)
downloade2fsprogs-153439222e6a16e40be324408d8d19361bc1e65e.tar.gz
Define helper functions ext2fs_set_i_{u,g}id_high() for MacOS compatibility
This is needed for all non-Linux/Hurd/Masix systems... Addresses-Sourceforge-Bug: #1863819 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'misc/mke2fs.c')
-rw-r--r--misc/mke2fs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/mke2fs.c b/misc/mke2fs.c
index 3795790e..7a360eab 100644
--- a/misc/mke2fs.c
+++ b/misc/mke2fs.c
@@ -495,11 +495,11 @@ static void create_root_dir(ext2_filsys fs)
}
uid = getuid();
inode.i_uid = uid;
- inode.i_uid_high = uid >> 16;
+ ext2fs_set_i_uid_high(inode, uid >> 16);
if (uid) {
gid = getgid();
inode.i_gid = gid;
- inode.i_gid_high = gid >> 16;
+ ext2fs_set_i_gid_high(inode, gid >> 16);
}
retval = ext2fs_write_new_inode(fs, EXT2_ROOT_INO, &inode);
if (retval) {