From 99138976d9f0e9f94e9920af5e61ace9fd5554df Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Wed, 24 Jul 2002 05:37:47 +0000 Subject: * path.cc (path_conv::check): Always set fileattr when component == 0. (readlink): Use path_conv method rather than field. * fhandler_disk_file.cc (fhandler_disk_file::fstat_helper): Ditto, throughout. * path.h (path_conv): Make fileattr private. * exceptions.cc (try_to_debug): Default to idle priority when looping. --- winsup/cygwin/path.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'winsup/cygwin/path.h') diff --git a/winsup/cygwin/path.h b/winsup/cygwin/path.h index 3d9b86c15..f9f55035e 100644 --- a/winsup/cygwin/path.h +++ b/winsup/cygwin/path.h @@ -70,6 +70,7 @@ struct fs_info class path_conv { char path[MAX_PATH]; + DWORD fileattr; fs_info fs; void add_ext_from_sym (symlink_info&); public: @@ -79,7 +80,6 @@ class path_conv int error; DWORD devn; int unit; - DWORD fileattr; BOOL case_clash; char *normalized_path; @@ -138,8 +138,8 @@ class path_conv check (src, opt | PC_NULLEMPTY, suffixes); } - path_conv (): path_flags (0), known_suffix (NULL), error (0), devn (0), - unit (0), fileattr (INVALID_FILE_ATTRIBUTES), + path_conv (): fileattr (INVALID_FILE_ATTRIBUTES), path_flags (0), + known_suffix (NULL), error (0), devn (0), unit (0), normalized_path (NULL) {path[0] = '\0';} inline char *get_win32 () { return path; } -- cgit v1.2.3