]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit - misc/create_inode.c
create_inode: handle source symlinks with extended attributes
authorTheodore Ts'o <tytso@mit.edu>
Sun, 17 May 2015 19:06:45 +0000 (15:06 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 17 May 2015 19:06:45 +0000 (15:06 -0400)
commit344c043b38689c5e394a8659b6ef63814eff7479
treee37ba88260afde0ad3c8e6d9590f7e14b294a029
parent66eb45b96563be387c1a2b39d1c0082692edbbc8
create_inode: handle source symlinks with extended attributes

We need to use lgetxattr(2) instead of getxattr(2) or attempts to
create file systems with extended attributes will fail:

set_inode_xattr: No data available while reading attribute "trusted.link" of "link"
__populate_fs: No data available while setting xattrs for "link"
mke2fs: No data available while populating file system

Reported-by: Jack_Fewx@Dell.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/create_inode.c