sysctl: Update previous patch for newlib
This change was cherry picked from old library branch but missed the change to check the path. References: commit 6389deca5bf667f5fab5912acde78ba8e0febbc7
This commit is contained in:
parent
6389deca5b
commit
2a7c909a1b
5
sysctl.c
5
sysctl.c
@ -543,9 +543,8 @@ static int WriteSetting(
|
||||
return rc;
|
||||
}
|
||||
|
||||
if (!is_proc_path(tmpname)) {
|
||||
rc = -1;
|
||||
goto out;
|
||||
if (!is_proc_path(path)) {
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
if ((ts.st_mode & S_IWUSR) == 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user