diff options
author | Christopher Faylor <me@cgf.cx> | 2005-12-01 17:33:59 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2005-12-01 17:33:59 +0000 |
commit | c57b13f9f85c50332dab29642d910769ead51255 (patch) | |
tree | a5f055bd50ee117dcf035f75c78e45a8abaafff3 /winsup/cygwin/path.h | |
parent | 32e616339a776d09df4ba9fbfbf26369d8735060 (diff) | |
download | cygnal-c57b13f9f85c50332dab29642d910769ead51255.tar.gz cygnal-c57b13f9f85c50332dab29642d910769ead51255.tar.bz2 cygnal-c57b13f9f85c50332dab29642d910769ead51255.zip |
* devices.h (_minor): Coerce argument to proper type before manipulating.
(_major): Ditto.
(device::is_fs_special): New function.
* fhandler_disk_file.cc (fhandler_base::fstat_helper): Set the size to 0 for
devices rather than reporting the size of the symlink.
(fhandler_disk_file::readdir): Use is_fs_special to determine if .lnk should be
stripped.
* path.cc: Rename symlink_info::is_symlink to symlink_info::issymlink
throughout.
(symlink_info::isdevice): New field.
(path_conv::check): Use 'isdevice' to determine if just-parsed entity is a
device rather than relying on non-zero major/minor.
(symlink_info::parse_device): Set isdevice to true if we've discovered a
device.
(symlink_info::check): Clear isdevice field prior to processing. Use isdevice
to control debugging output.
(symlink_info::set): Set isdevice to false.
* path.h (path_conv::is_fs_special): New function.
* devices.cc: Regenerate.
Diffstat (limited to 'winsup/cygwin/path.h')
-rw-r--r-- | winsup/cygwin/path.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/path.h b/winsup/cygwin/path.h index e2fa22498..27c21496f 100644 --- a/winsup/cygwin/path.h +++ b/winsup/cygwin/path.h @@ -153,7 +153,7 @@ class path_conv int isspecial () const {return dev.devn && dev.devn != FH_FS;} int is_auto_device () const {return isdevice () && !is_fs_special ();} int is_fs_device () const {return isdevice () && is_fs_special ();} - int is_fs_special () const {return isspecial () && dev.isfs ();} + int is_fs_special () const {return dev.is_fs_special ();} int is_lnk_special () const {return is_fs_device () || isfifo () || is_lnk_symlink ();} int issocket () const {return dev.devn == FH_UNIX;} int iscygexec () const {return path_flags & PATH_CYGWIN_EXEC;} |