Skip to content

Commit bf207eb

Browse files
committed
fix an issue on 64bit
1 parent 7e8dad5 commit bf207eb

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/main/jni/system.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@ jstring Java_com_github_shadowsocks_system_getabi(JNIEnv *env, jobject thiz) {
3232

3333
void Java_com_github_shadowsocks_system_exec(JNIEnv *env, jobject thiz, jstring cmd) {
3434
const char *str = env->GetStringUTFChars(cmd, 0);
35-
setenv("LD_LIBRARY_PATH", "/vendor/lib:/system/lib", 1);
36-
setegid(getgid());
37-
seteuid(getuid());
3835
system(str);
3936
env->ReleaseStringUTFChars(cmd, str);
4037
}
@@ -48,6 +45,8 @@ static JNINativeMethod method_table[] = {
4845
(void*) Java_com_github_shadowsocks_system_getabi }
4946
};
5047

48+
49+
5150
/*
5251
* Register several native methods for one class.
5352
*/

0 commit comments

Comments
 (0)