4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-19 04:49:25 +08:00

* 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
This commit is contained in:
Christopher Faylor 2001-10-29 20:30:47 +00:00
parent 3fbfb55efe
commit 8dd6060b98
2 changed files with 14 additions and 2 deletions

View File

@ -1,3 +1,15 @@
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.

View File

@ -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;
}