diff options
Diffstat (limited to 'winsup/cygwin/path.cc')
-rw-r--r-- | winsup/cygwin/path.cc | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc index 559c87339..47274b4e0 100644 --- a/winsup/cygwin/path.cc +++ b/winsup/cygwin/path.cc @@ -1,7 +1,7 @@ /* path.cc: path support. Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, - 2006, 2007, 2008, 2009 Red Hat, Inc. + 2006, 2007, 2008, 2009, 2010 Red Hat, Inc. This file is part of Cygwin. @@ -372,19 +372,6 @@ mkrelpath (char *path, bool caseinsensitive) } void -path_conv::fillin (HANDLE h) -{ - IO_STATUS_BLOCK io; - FILE_BASIC_INFORMATION fbi; - - if (NT_SUCCESS (NtQueryInformationFile (h, &io, &fbi, sizeof fbi, - FileBasicInformation))) - fileattr = fbi.FileAttributes; - else - fileattr = INVALID_FILE_ATTRIBUTES; -} - -void path_conv::set_normalized_path (const char *path_copy) { if (path_copy) @@ -2289,7 +2276,7 @@ symlink_info::check (char *path, const suffix_info *suffixes, unsigned opt, Note that additional STATUS_OBJECT_PATH_INVALID and STATUS_OBJECT_PATH_SYNTAX_BAD status codes exist. The first one - is seemingly not generated by NtQueryAttributesFile, the latter + is seemingly not generated by NtQueryInformationFile, the latter is only generated if the path is no absolute path within the NT name space, which should not happen and would point to an error in get_nt_native_path. Both status codes are deliberately |