equal
deleted
inserted
replaced
504 return; |
504 return; |
505 } |
505 } |
506 |
506 |
507 if (!is_directory_secure(dirname)) { |
507 if (!is_directory_secure(dirname)) { |
508 // the directory is not a secure directory |
508 // the directory is not a secure directory |
|
509 os::closedir(dirp); |
509 return; |
510 return; |
510 } |
511 } |
511 |
512 |
512 // for each entry in the directory that matches the expected file |
513 // for each entry in the directory that matches the expected file |
513 // name pattern, determine if the file resources are stale and if |
514 // name pattern, determine if the file resources are stale and if |
870 // since we don't follow symbolic links when creating the backing |
871 // since we don't follow symbolic links when creating the backing |
871 // store file, we don't follow them when attaching either. |
872 // store file, we don't follow them when attaching either. |
872 // |
873 // |
873 if (!is_directory_secure(dirname)) { |
874 if (!is_directory_secure(dirname)) { |
874 FREE_C_HEAP_ARRAY(char, dirname, mtInternal); |
875 FREE_C_HEAP_ARRAY(char, dirname, mtInternal); |
|
876 if (luser != user) { |
|
877 FREE_C_HEAP_ARRAY(char, luser, mtInternal); |
|
878 } |
875 THROW_MSG(vmSymbols::java_lang_IllegalArgumentException(), |
879 THROW_MSG(vmSymbols::java_lang_IllegalArgumentException(), |
876 "Process not found"); |
880 "Process not found"); |
877 } |
881 } |
878 |
882 |
879 char* filename = get_sharedmem_filename(dirname, vmid); |
883 char* filename = get_sharedmem_filename(dirname, vmid); |