* 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.
This commit is contained in:
Christopher Faylor
2002-07-24 05:37:47 +00:00
parent 63a93e9dd6
commit 99138976d9
5 changed files with 22 additions and 15 deletions

View File

@ -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; }