mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8166930: minor cleanups 1) remove reference to ZIP_ReadMappedEntry 2) checking of st_mode
Reviewed-by: jiangli, lfoltan
This commit is contained in:
parent
d058e0d477
commit
ac6b2ca3dc
3 changed files with 6 additions and 18 deletions
|
@ -263,7 +263,7 @@ void FileMapInfo::allocate_classpath_entry_table() {
|
|||
} else {
|
||||
struct stat st;
|
||||
if (os::stat(name, &st) == 0) {
|
||||
if ((st.st_mode & S_IFDIR) == S_IFDIR) {
|
||||
if ((st.st_mode & S_IFMT) == S_IFDIR) {
|
||||
if (!os::dir_is_empty(name)) {
|
||||
ClassLoader::exit_with_path_failure(
|
||||
"Cannot have non-empty directory in archived classpaths", name);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue