diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 809f49ad3..ca4461632 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,7 @@ +Mon Sep 3 21:06:00 2001 Corinna Vinschen + + * dir.cc (opendir): Write version information to __d_dirent->d_version. + Mon Sep 3 18:34:00 2001 Corinna Vinschen * cygwin.din: Add `dirfd'. diff --git a/winsup/cygwin/dir.cc b/winsup/cygwin/dir.cc index d44615e58..9d21cdc19 100644 --- a/winsup/cygwin/dir.cc +++ b/winsup/cygwin/dir.cc @@ -127,6 +127,7 @@ opendir (const char *dirname) goto failed; } strcpy (dir->__d_dirname, real_dirname.get_win32 ()); + dir->__d_dirent->d_version = __DIRENT_VERSION; dir->__d_dirent->d_fd = open (dir->__d_dirname, O_RDONLY | O_DIROPEN); /* FindFirstFile doesn't seem to like duplicate /'s. */ len = strlen (dir->__d_dirname);