about summary refs log tree commit diff
path: root/posix/bug-glob2.c
diff options
context:
space:
mode:
Diffstat (limited to 'posix/bug-glob2.c')
-rw-r--r--posix/bug-glob2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/posix/bug-glob2.c b/posix/bug-glob2.c
index 8e21deb658..1b1ca5a719 100644
--- a/posix/bug-glob2.c
+++ b/posix/bug-glob2.c
@@ -193,7 +193,7 @@ my_readdir (void *gdir)
       return NULL;
     }
 
-  dir->d.d_ino = dir->idx;
+  dir->d.d_ino = 1;		/* glob should not skip this entry.  */
 
 #ifdef _DIRENT_HAVE_D_TYPE
   dir->d.d_type = filesystem[dir->idx].type;