From ecfb6f11bcfe614f890d7f9f5e6633b2178c45a4 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Thu, 31 May 2001 05:25:46 +0000 Subject: * path.cc (chdir): Always send unsigned chars to isspace since newlib's isspace doesn't deal well with "negative" chars. * fhandler.cc (fhandler_disk_file::open): Propagate remote status of file garnered from path_conv. Move #! checking to fstat. (fhandler_disk_file::fstat): Reorganize st_mode setting to eliminate duplication. Move check for #! here from fhandler::open. * fhandler.h (fhandler_base::isremote): New method. (fhandler_base::set_isremote): Ditto. (fhandler_base::set_execable_p): Also record "don't care if executable state". (fhandler_base::dont_care_if_execable): New method. * path.cc (path_conv::check): Clear new flags. Appropriately set vol_flags, drive_type, and is_remote_drive. * path.h: Add new flags and methods for manipulating them. * syscalls.cc (_unlink): Use isremote() to determine if a path is remote rather than calling GetDriveType. (stat_worker): Ditto. * security.cc (get_file_attribute): Or attribute with result of NTReadEA to be consistent with get_nt_attribute. --- winsup/cygwin/ntea.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'winsup/cygwin/ntea.cc') diff --git a/winsup/cygwin/ntea.cc b/winsup/cygwin/ntea.cc index 2c9df4ce6..85cc4187f 100644 --- a/winsup/cygwin/ntea.cc +++ b/winsup/cygwin/ntea.cc @@ -86,7 +86,7 @@ int __stdcall NTReadEA (const char *file, const char *attrname, char *attrbuf, int len) { /* return immediately if NTEA usage is turned off */ - if (! allow_ntea) + if (!allow_ntea) return FALSE; HANDLE hFileSource; @@ -257,7 +257,7 @@ BOOL __stdcall NTWriteEA (const char *file, const char *attrname, char *buf, int len) { /* return immediately if NTEA usage is turned off */ - if (! allow_ntea) + if (!allow_ntea) return TRUE; HANDLE hFileSource; -- cgit v1.2.3