diff options
author | Christopher Faylor <me@cgf.cx> | 2001-10-29 20:30:47 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2001-10-29 20:30:47 +0000 |
commit | 8dd6060b9857e93f8d452fc9b283cd39c845b701 (patch) | |
tree | 49ad45f8a0b0084965a37029f7d523f256fc0b9a | |
parent | 3fbfb55efe38a6f52979a25b02c81a0acfee6dc9 (diff) | |
download | newlib-8dd6060b9857e93f8d452fc9b283cd39c845b701.zip newlib-8dd6060b9857e93f8d452fc9b283cd39c845b701.tar.gz newlib-8dd6060b9857e93f8d452fc9b283cd39c845b701.tar.bz2 |
* fhandler.cc (fhandler_base::set_name): Set namehash here to catch name
changes.
(fhandler_base::open): Remove namehash setting.
(fhandler_base::fstat): Subtract 1 from arbitrary time setting to avoid strange
ls -l granularity problem.
* shared_info.h (MOUNT_VE
-rw-r--r-- | winsup/cygwin/ChangeLog | 12 | ||||
-rw-r--r-- | winsup/cygwin/fhandler.cc | 4 |
2 files changed, 14 insertions, 2 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 164ebb6..a46d88a 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,5 +1,17 @@ 2001-10-29 Christopher Faylor <cgf@redhat.com> + * fhandler.cc (fhandler_base::set_name): Set namehash here to catch + name changes. + (fhandler_base::open): Remove namehash setting. + (fhandler_base::fstat): Subtract 1 from arbitrary time setting to avoid + strange ls -l granularity problem. + +2001-10-24 Christopher Faylor <cgf@redhat.com> + + * shared_info.h (MOUNT_VE + +2001-10-29 Christopher Faylor <cgf@redhat.com> + * select.cc (MAKEready): Remove extraneous select_read. 2001-10-29 Corinna Vinschen <corinna@vinschen.de> diff --git a/winsup/cygwin/fhandler.cc b/winsup/cygwin/fhandler.cc index 1385223..682f4b7 100644 --- a/winsup/cygwin/fhandler.cc +++ b/winsup/cygwin/fhandler.cc @@ -189,6 +189,7 @@ fhandler_base::set_name (const char *unix_path, const char *win32_path, int unit system_printf ("fatal error. strdup failed"); exit (ENOMEM); } + namehash = hash_path_name (0, win32_path_name); } void @@ -411,7 +412,6 @@ fhandler_base::open (path_conv *, int flags, mode_t mode) && !allow_ntsec && allow_ntea) set_file_attribute (has_acls (), get_win32_name (), mode); - namehash = hash_path_name (0, get_win32_name ()); set_io_handle (x); int bin; int fmode; @@ -870,7 +870,7 @@ fhandler_base::fstat (struct stat *buf, path_conv *) buf->st_blksize = S_BLKSIZE; buf->st_dev = buf->st_rdev = FHDEVN (get_device ()) << 8 | (get_unit () & 0xff); buf->st_ino = get_namehash (); - buf->st_atime = buf->st_mtime = buf->st_ctime = time (NULL); + buf->st_atime = buf->st_mtime = buf->st_ctime = time (NULL) - 1; return 0; } |