mirror of
https://github.com/openjdk/jdk.git
synced 2026-01-28 03:58:21 +00:00
8266087: Move 'buffer' declaration in get_user_name_slow() inside of linux specific code
Reviewed-by: zgu, dcubed
This commit is contained in:
parent
ec383abc1d
commit
f40bf1d240
@ -527,10 +527,10 @@ static char* get_user_name_slow(int vmid, int nspid, TRAPS) {
|
||||
// directory search
|
||||
char* oldest_user = NULL;
|
||||
time_t oldest_ctime = 0;
|
||||
char buffer[MAXPATHLEN + 1];
|
||||
int searchpid;
|
||||
char* tmpdirname = (char *)os::get_temp_directory();
|
||||
#if defined(LINUX)
|
||||
char buffer[MAXPATHLEN + 1];
|
||||
assert(strlen(tmpdirname) == 4, "No longer using /tmp - update buffer size");
|
||||
|
||||
// On Linux, if nspid != -1, look in /proc/{vmid}/root/tmp for directories
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user