mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2025-12-10 07:44:53 +01:00
Merge "sysupgrade: Read the files whose names starts with section type"
This commit is contained in:
commit
6efdb60f4b
1 changed files with 2 additions and 2 deletions
|
|
@ -201,7 +201,7 @@ int get_sections(void)
|
|||
|
||||
while ((file = readdir(dir)) != NULL) {
|
||||
for (i = 0, sec = §ions[0]; i < NO_OF_SECTIONS; i++, sec++) {
|
||||
if (strstr(file->d_name, sec->type)) {
|
||||
if (!strncmp(file->d_name, sec->type, strlen(sec->type))) {
|
||||
if (sec->pre_op) {
|
||||
strlcat(sec->tmp_file, file->d_name,
|
||||
sizeof(sec->tmp_file));
|
||||
|
|
@ -246,7 +246,7 @@ int load_sections(void)
|
|||
|
||||
while ((file = readdir(dir)) != NULL) {
|
||||
for (i = 0, sec = §ions[0]; i < NO_OF_SECTIONS; i++, sec++) {
|
||||
if (strstr(file->d_name, sec->type)) {
|
||||
if (!strncmp(file->d_name, sec->type, strlen(sec->type))) {
|
||||
if (sec->pre_op) {
|
||||
strlcat(sec->tmp_file, file->d_name,
|
||||
sizeof(sec->tmp_file));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue