diff --git a/ChangeLog b/ChangeLog index a0780ab..16aab92 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-07-23 Vladimir Serbinenko + + * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work + on XFS or ReiserFS. + 2009-07-21 Vladimir Serbinenko UUID support for UFS diff --git a/util/hostfs.c b/util/hostfs.c index 1b963bb..83db2f1 100644 --- a/util/hostfs.c +++ b/util/hostfs.c @@ -28,7 +28,6 @@ #include -#ifndef DT_DIR /* dirent.d_type is a BSD extension, not part of POSIX */ #include #include @@ -53,7 +52,6 @@ is_dir (const char *path, const char *name) return 0; return S_ISDIR (st.st_mode); } -#endif static grub_err_t grub_hostfs_dir (grub_device_t device, const char *path, @@ -81,11 +79,7 @@ grub_hostfs_dir (grub_device_t device, const char *path, if (! de) break; -#ifdef DT_DIR - info.dir = (de->d_type == DT_DIR); -#else info.dir = !! is_dir (path, de->d_name); -#endif hook (de->d_name, &info); }