Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2003-09-09 04:21:16 +0400
committerChristopher Faylor <me@cgf.cx>2003-09-09 04:21:16 +0400
commit51d340e1c801b82e5e8b58b48639d46681d33f4c (patch)
treecdbd0b7da1de7f1d289d95d4ccbf4b589850279c /winsup/cygwin/dir.cc
parent7d0e78a71b36e454b195145e4774cefcc3163225 (diff)
* dir.cc (readdir): Reinstate setting of old ino field for legacy applications.
* dirent.h (dirent): Rename unused field to __ino32. * passwd.cc (getpwnam_r): Initialize pw_comment field.
Diffstat (limited to 'winsup/cygwin/dir.cc')
-rw-r--r--winsup/cygwin/dir.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/winsup/cygwin/dir.cc b/winsup/cygwin/dir.cc
index 6fd2804d4..c7edd8871 100644
--- a/winsup/cygwin/dir.cc
+++ b/winsup/cygwin/dir.cc
@@ -174,6 +174,7 @@ readdir (DIR *dir)
__ino64_t dino = hash_path_name (dir->__d_dirhash, "\\");
dir->__d_dirent->d_ino = hash_path_name (dino, res->d_name);
}
+ res->__ino32 = dir->__d_dirent->d_ino; // for legacy applications
}
return res;
}