Extra "/" causes problem when matching entries in fs_config.
Change-Id: Ie1659b98db3d599cdd1a832d2dfb3036d399a6e3
From AOSP commit:
7fe49140ef755e98607a67199971c01ed6a96930
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
.sehnd = sehnd,
.fixed_time = fixed_time,
.path = mountpoint,
- .filename = mountpoint,
+ .filename = mountpoint,
};
+ /* walk_dir will add the "/". Don't add it twice. */
+ if (strlen(mountpoint) == 1 && mountpoint[0] == '/')
+ params.path = "";
+
retval = set_selinux_xattr(fs, EXT2_ROOT_INO, ¶ms);
if (retval)
return retval;