diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2011-07-05 16:02:10 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2011-07-05 16:02:10 +0400 |
commit | 8c1f7cf707215bca8dd2831881ac75913b4d7f72 (patch) | |
tree | e722bc856096c83f883eb573721fead8cd188555 /winsup/cygwin/fhandler_disk_file.cc | |
parent | fcacca02dd945f1fce8ccfedae14e08b887d9adb (diff) |
* fhandler.cc (fhandler_base::open): Never create files with WRITE_DAC
access. Explain why.
* fhandler_disk_file.cc (fhandler_base::fstat_helper): Improve debug
output.
Diffstat (limited to 'winsup/cygwin/fhandler_disk_file.cc')
-rw-r--r-- | winsup/cygwin/fhandler_disk_file.cc | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/winsup/cygwin/fhandler_disk_file.cc b/winsup/cygwin/fhandler_disk_file.cc index 36af9a50d..48ffd6060 100644 --- a/winsup/cygwin/fhandler_disk_file.cc +++ b/winsup/cygwin/fhandler_disk_file.cc @@ -659,10 +659,15 @@ fhandler_base::fstat_helper (struct __stat64 *buf, } done: - syscall_printf ("0 = fstat (%S, %p) st_atime=%x st_size=%D, st_mode=%p, " - "st_ino=%D, sizeof=%d", - pc.get_nt_native_path (), buf, buf->st_atime, buf->st_size, - buf->st_mode, buf->st_ino, sizeof (*buf)); + syscall_printf ("0 = fstat (%S, %p) st_size=%D, st_mode=%p, st_ino=%D" + "st_atim=%x.%x st_ctim=%x.%x " + "st_mtim=%x.%x st_birthtim=%x.%x", + pc.get_nt_native_path (), buf, + buf->st_size, buf->st_mode, buf->st_ino, + buf->st_atim.tv_sec, buf->st_atim.tv_nsec, + buf->st_ctim.tv_sec, buf->st_ctim.tv_nsec, + buf->st_mtim.tv_sec, buf->st_mtim.tv_nsec, + buf->st_birthtim.tv_sec, buf->st_birthtim.tv_nsec); return 0; } |