diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2001-09-03 23:06:58 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2001-09-03 23:06:58 +0400 |
commit | 2321ebb2aa21a1509aa97e3d4a57a34ab5d6db17 (patch) | |
tree | c9bebf39ffa42137dcc6fe0270cdfbb9971b4ed4 /winsup | |
parent | a3e67ddfe6806949e6f441e89a1dbe5f0b92ed1a (diff) |
* dir.cc (opendir): Write version information to __d_dirent->d_version.
Diffstat (limited to 'winsup')
-rw-r--r-- | winsup/cygwin/ChangeLog | 4 | ||||
-rw-r--r-- | winsup/cygwin/dir.cc | 1 |
2 files changed, 5 insertions, 0 deletions
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 <corinna@vinschen.de> + + * dir.cc (opendir): Write version information to __d_dirent->d_version. + Mon Sep 3 18:34:00 2001 Corinna Vinschen <corinna@vinschen.de> * 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); |