diff options
author | Christopher Faylor <me@cgf.cx> | 2002-07-24 05:37:47 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2002-07-24 05:37:47 +0000 |
commit | 99138976d9f0e9f94e9920af5e61ace9fd5554df (patch) | |
tree | 317a5dc50db8febc6e0cc603627c58f669b3c423 /winsup/cygwin/fhandler_disk_file.cc | |
parent | 63a93e9dd606b8760bf9bb26320978629c8f45a1 (diff) | |
download | cygnal-99138976d9f0e9f94e9920af5e61ace9fd5554df.tar.gz cygnal-99138976d9f0e9f94e9920af5e61ace9fd5554df.tar.bz2 cygnal-99138976d9f0e9f94e9920af5e61ace9fd5554df.zip |
* 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.
Diffstat (limited to 'winsup/cygwin/fhandler_disk_file.cc')
-rw-r--r-- | winsup/cygwin/fhandler_disk_file.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/winsup/cygwin/fhandler_disk_file.cc b/winsup/cygwin/fhandler_disk_file.cc index 95081f061..738416fbf 100644 --- a/winsup/cygwin/fhandler_disk_file.cc +++ b/winsup/cygwin/fhandler_disk_file.cc @@ -260,7 +260,7 @@ fhandler_disk_file::fstat_helper (struct __stat64 *buf, path_conv *pc, buf->st_mode = 0; /* Using a side effect: get_file_attibutes checks for directory. This is used, to set S_ISVTX, if needed. */ - if (pc->fileattr & FILE_ATTRIBUTE_DIRECTORY) + if (pc->isdir ()) buf->st_mode = S_IFDIR; else if (pc->issymlink ()) buf->st_mode = S_IFLNK; @@ -273,7 +273,7 @@ fhandler_disk_file::fstat_helper (struct __stat64 *buf, path_conv *pc, &uid, &gid) == 0) { /* If read-only attribute is set, modify ntsec return value */ - if ((pc->fileattr & FILE_ATTRIBUTE_READONLY) && !get_symlink_p ()) + if (pc->has_attribute (FILE_ATTRIBUTE_READONLY) && !get_symlink_p ()) buf->st_mode &= ~(S_IWUSR | S_IWGRP | S_IWOTH); if (!(buf->st_mode & S_IFMT)) @@ -283,7 +283,7 @@ fhandler_disk_file::fstat_helper (struct __stat64 *buf, path_conv *pc, { buf->st_mode |= STD_RBITS; - if (!(pc->fileattr & FILE_ATTRIBUTE_READONLY)) + if (!pc->has_attribute (FILE_ATTRIBUTE_READONLY)) buf->st_mode |= STD_WBITS; /* | S_IWGRP | S_IWOTH; we don't give write to group etc */ |