diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 7007148fc..cf37d5668 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,9 @@ +2006-02-27 Corinna Vinschen + + * fhandler_netdrive.cc (fhandler_netdrive::fstat): Create unambiguous + inode number. + (fhandler_netdrive::readdir): Ditto. + 2006-02-24 Christopher Faylor * sigproc.cc (sigheld): Define new variable. diff --git a/winsup/cygwin/fhandler_netdrive.cc b/winsup/cygwin/fhandler_netdrive.cc index 4bc8ec3e2..33833a63e 100644 --- a/winsup/cygwin/fhandler_netdrive.cc +++ b/winsup/cygwin/fhandler_netdrive.cc @@ -143,6 +143,7 @@ fhandler_netdrive::fstat (struct __stat64 *buf) fhandler_base::fstat (buf); buf->st_mode = S_IFDIR | STD_RBITS | STD_XBITS; + buf->st_ino = get_namehash (); return 0; } @@ -205,6 +206,8 @@ fhandler_netdrive::readdir (DIR *dir, dirent *de) dir->__d_position++; char *bs = strrchr (nro->lpRemoteName, '\\'); strcpy (de->d_name, bs ? bs + 1 : nro->lpRemoteName); + de->d_ino = hash_path_name (get_namehash (), de->d_name); + res = 0; } out: