projects
/
platform
/
upstream
/
btrfs-progs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
btrfs-progs: mkfs rootdir: use lgetxattr() not to follow a symbolic link
[platform/upstream/btrfs-progs.git]
/
mkfs
/
rootdir.c
diff --git
a/mkfs/rootdir.c
b/mkfs/rootdir.c
index
33c3ff1
..
ff00bb0
100644
(file)
--- a/
mkfs/rootdir.c
+++ b/
mkfs/rootdir.c
@@
-249,7
+249,7
@@
static int add_xattr_item(struct btrfs_trans_handle *trans,
cur_name_len = strlen(cur_name);
next_location += cur_name_len + 1;
- ret = getxattr(file_name, cur_name, cur_value, XATTR_SIZE_MAX);
+ ret =
l
getxattr(file_name, cur_name, cur_value, XATTR_SIZE_MAX);
if (ret < 0) {
if (errno == ENOTSUP)
return 0;