randomizw
android port git-svn-id: svn://db.shs.com.ru/pip@39 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -158,8 +158,9 @@ PIInit::PIInit() {
|
||||
sinfo->user = ps->pw_name;
|
||||
else {
|
||||
memset(cbuff, 0, 1024);
|
||||
if (getlogin_r(cbuff, 1023) == 0)
|
||||
sinfo->user = cbuff;
|
||||
char * l = getlogin();
|
||||
if (l)
|
||||
sinfo->user = l;
|
||||
}
|
||||
struct utsname uns;
|
||||
if (uname(&uns) == 0) {
|
||||
|
||||
Reference in New Issue
Block a user