Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
M
Magisk
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Magisk
Commits
37b81ad1
Commit
37b81ad1
authored
Dec 26, 2022
by
LoveSy
Committed by
John Wu
Dec 27, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refine module preparation return value
parent
7871c2f5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
module.cpp
native/src/core/module.cpp
+3
-3
No files found.
native/src/core/module.cpp
View file @
37b81ad1
...
@@ -117,7 +117,7 @@ public:
...
@@ -117,7 +117,7 @@ public:
// Return false to indicate need to upgrade to module
// Return false to indicate need to upgrade to module
bool
collect_files
(
const
char
*
module
,
int
dfd
);
bool
collect_files
(
const
char
*
module
,
int
dfd
);
// Return
fals
e to indicate need to upgrade to skeleton
// Return
tru
e to indicate need to upgrade to skeleton
bool
prepare
();
bool
prepare
();
// Default directory mount logic
// Default directory mount logic
...
@@ -422,14 +422,14 @@ bool dir_node::prepare() {
...
@@ -422,14 +422,14 @@ bool dir_node::prepare() {
}
}
}
}
}
}
if
(
auto
dn
=
dyn_cast
<
dir_node
>
(
it
->
second
);
dn
&&
dn
->
is_dir
()
&&
!
dn
->
prepare
())
{
if
(
auto
dn
=
dyn_cast
<
dir_node
>
(
it
->
second
);
dn
&&
dn
->
is_dir
()
&&
dn
->
prepare
())
{
// Upgrade child to tmpfs
// Upgrade child to tmpfs
it
=
upgrade
<
tmpfs_node
>
(
it
);
it
=
upgrade
<
tmpfs_node
>
(
it
);
}
}
next_node
:
next_node
:
++
it
;
++
it
;
}
}
return
!
to_tmpfs
;
return
to_tmpfs
;
}
}
bool
dir_node
::
collect_files
(
const
char
*
module
,
int
dfd
)
{
bool
dir_node
::
collect_files
(
const
char
*
module
,
int
dfd
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment