]> sourceware.org Git - newlib-cygwin.git/commit
Use correct file info (especially inode number) for newly created files
authorCorinna Vinschen <corinna@vinschen.de>
Tue, 21 Jun 2016 11:39:04 +0000 (13:39 +0200)
committerCorinna Vinschen <corinna@vinschen.de>
Tue, 21 Jun 2016 11:39:04 +0000 (13:39 +0200)
commit4965cdc9ad2753f7aa91711e2862d7e350168bef
tree26e238303825a1cc00bd6b1a5ea02a84efbe70d5
parent36d4eb12b5f23093ae1285d0725f4930235a07e5
Use correct file info (especially inode number) for newly created files

fhandler_base::open_fs has two problems:
- When newly creating a file, the file info in the path_conv is
  incorrect.  It points to info for the parent dir, not to info
  for the file itself (which, naturally, wasn't available before).
- Fetching the file's inode number only worked for non-NFS.

Both problems should be fixed now by reloading file info if the file
has just been created, as well as using the new FS-agnostic
path_conv::get_ino method.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
winsup/cygwin/fhandler_disk_file.cc
This page took 0.026923 seconds and 5 git commands to generate.