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
cd6918e6
Commit
cd6918e6
authored
Aug 02, 2018
by
topjohnwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Stop altering PATH to mirror
parent
5be035fd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
bootstages.c
native/jni/core/bootstages.c
+4
-2
No files found.
native/jni/core/bootstages.c
View file @
cd6918e6
...
@@ -115,10 +115,12 @@ static struct node_entry *insert_child(struct node_entry *p, struct node_entry *
...
@@ -115,10 +115,12 @@ static struct node_entry *insert_child(struct node_entry *p, struct node_entry *
***********/
***********/
static
void
set_path
(
struct
vector
*
v
)
{
static
void
set_path
(
struct
vector
*
v
)
{
char
buffer
[
512
];
for
(
int
i
=
0
;
environ
[
i
];
++
i
)
{
for
(
int
i
=
0
;
environ
[
i
];
++
i
)
{
if
(
strncmp
(
environ
[
i
],
"PATH="
,
5
)
==
0
)
{
if
(
strncmp
(
environ
[
i
],
"PATH="
,
5
)
==
0
)
{
vec_push_back
(
v
,
strdup
(
"PATH="
BBPATH
":/sbin:"
MIRRDIR
"/system/bin:"
// Prepend BBPATH to PATH
MIRRDIR
"/system/xbin:"
MIRRDIR
"/vendor/bin"
));
sprintf
(
buffer
,
"PATH="
BBPATH
":%s"
,
environ
[
i
]
+
5
);
vec_push_back
(
v
,
strdup
(
buffer
));
}
else
{
}
else
{
vec_push_back
(
v
,
strdup
(
environ
[
i
]));
vec_push_back
(
v
,
strdup
(
environ
[
i
]));
}
}
...
...
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