diff options
author | Jeremy Puhlman <jpuhlman@mvista.com> | 2018-07-12 11:31:05 -0700 |
---|---|---|
committer | Joe MacDonald <joe_macdonald@mentor.com> | 2018-08-13 11:20:32 -0400 |
commit | 78eca8242ea5397c4dc0654d62244453b4260151 (patch) | |
tree | fa8abe880c152d69e9d76afc6dc53bcae5a2342c | |
parent | 8ecad12b2ccb612fdf4906392d26fa6bfae20460 (diff) | |
download | meta-selinux-78eca8242ea5397c4dc0654d62244453b4260151.tar.gz |
e2fsprogs: Update patch for current master
Signed-off-by: Jeremy Puhlman <jpuhlman@mvista.com>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
-rw-r--r-- | recipes-devtools/e2fsprogs/files/misc_create_inode.c-label_rootfs.patch | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/recipes-devtools/e2fsprogs/files/misc_create_inode.c-label_rootfs.patch b/recipes-devtools/e2fsprogs/files/misc_create_inode.c-label_rootfs.patch index 1de0dde..046e521 100644 --- a/recipes-devtools/e2fsprogs/files/misc_create_inode.c-label_rootfs.patch +++ b/recipes-devtools/e2fsprogs/files/misc_create_inode.c-label_rootfs.patch | |||
@@ -8,15 +8,17 @@ When copying a file system using the -d option the xattrs from the root | |||
8 | directory need to be copied before the populate_fs recusion starts. | 8 | directory need to be copied before the populate_fs recusion starts. |
9 | 9 | ||
10 | Signed-off-by: Philip Tricca <flihp@twobit.us> | 10 | Signed-off-by: Philip Tricca <flihp@twobit.us> |
11 | Signed-off-by: Jeremy Puhlman <jpuhlman@mvista.com> | ||
12 | |||
11 | --- | 13 | --- |
12 | misc/create_inode.c | 7 +++++++ | 14 | misc/create_inode.c | 8 ++++++++ |
13 | 1 file changed, 7 insertions(+) | 15 | 1 file changed, 8 insertions(+) |
14 | 16 | ||
15 | diff --git a/misc/create_inode.c b/misc/create_inode.c | 17 | diff --git a/misc/create_inode.c b/misc/create_inode.c |
16 | index 0de5719..ee21186 100644 | 18 | index a7b6d348..cfd15922 100644 |
17 | --- a/misc/create_inode.c | 19 | --- a/misc/create_inode.c |
18 | +++ b/misc/create_inode.c | 20 | +++ b/misc/create_inode.c |
19 | @@ -890,8 +890,15 @@ errcode_t populate_fs(ext2_filsys fs, ext2_ino_t parent_ino, | 21 | @@ -979,6 +979,13 @@ errcode_t populate_fs2(ext2_filsys fs, ext2_ino_t parent_ino, |
20 | return retval; | 22 | return retval; |
21 | } | 23 | } |
22 | 24 | ||
@@ -26,12 +28,18 @@ index 0de5719..ee21186 100644 | |||
26 | + _("while setting xattrs for \"%s\""), source_dir); | 28 | + _("while setting xattrs for \"%s\""), source_dir); |
27 | + goto out; | 29 | + goto out; |
28 | + } | 30 | + } |
29 | retval = __populate_fs(fs, parent_ino, source_dir, root, &hdlinks); | 31 | + |
32 | file_info.path_len = 0; | ||
33 | file_info.path_max_len = 255; | ||
34 | file_info.path = calloc(file_info.path_max_len, 1); | ||
35 | @@ -987,6 +994,7 @@ errcode_t populate_fs2(ext2_filsys fs, ext2_ino_t parent_ino, | ||
36 | &file_info, fs_callbacks); | ||
30 | 37 | ||
38 | free(file_info.path); | ||
31 | +out: | 39 | +out: |
32 | free(hdlinks.hdl); | 40 | free(hdlinks.hdl); |
33 | return retval; | 41 | return retval; |
34 | } | 42 | } |
35 | -- | 43 | -- |
36 | 2.1.4 | 44 | 2.11.1 |
37 | 45 | ||