debug
This commit is contained in:
parent
57e0fbaf58
commit
6017df40ff
4
main.c
4
main.c
@ -133,8 +133,8 @@ int getprocinfo( int ppid, char cmdline[], char cmd[], char user[] )
|
|||||||
}
|
}
|
||||||
fgets( str, 1024, fh1);
|
fgets( str, 1024, fh1);
|
||||||
null2space( str );
|
null2space( str );
|
||||||
pos = strstr( str, "USER=");
|
pos = strstr( str, "USER=") +5;
|
||||||
sprintf( user, "%s", pos+5);
|
sscanf( user, "%s", pos);
|
||||||
fclose(fh1);
|
fclose(fh1);
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user