8166930: minor cleanups 1) remove reference to ZIP_ReadMappedEntry 2) checking of st_mode

Reviewed-by: jiangli, lfoltan
This commit is contained in:
Calvin Cheung 2016-09-30 12:11:02 -07:00
parent d058e0d477
commit ac6b2ca3dc
3 changed files with 6 additions and 18 deletions

View file

@ -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);