diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2012-04-02 19:56:43 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2012-04-02 19:56:43 +0400 |
commit | f7c8c4540a86561fc4cc100c0d752740231d7960 (patch) | |
tree | ea5bde2ea06e3c3874e7ac34287d8090e46e17f0 /winsup/cygwin/syscalls.cc | |
parent | 1f312200d30c76f24e6bc56afa7d4786ea86b4d5 (diff) |
* devices.h (FH_CYGDRIVE): Define as DEV_VIRTFS_MAJOR class device.
(DEV_CYGDRIVE_MAJOR): Remove.
(iscygdrive_dev): Define.
* dtable.cc (fh_alloc): Accommodate above change.
* path.cc (path_conv::check): Use iscygdrive_dev to check for cygdrive.
* syscalls.cc (fhandler_base::set_ino_and_dev): Drop check for
DEV_CYGDRIVE_MAJOR from conditional.
Diffstat (limited to 'winsup/cygwin/syscalls.cc')
-rw-r--r-- | winsup/cygwin/syscalls.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc index 73948107d..fce0d28ee 100644 --- a/winsup/cygwin/syscalls.cc +++ b/winsup/cygwin/syscalls.cc @@ -1612,8 +1612,7 @@ fhandler_base::set_ino_and_dev (struct __stat64 *buf) buf->st_dev = get_device (); } /* Only set st_rdev if it's a device. */ - if (!buf->st_rdev && get_major () != DEV_VIRTFS_MAJOR - && get_major () != DEV_CYGDRIVE_MAJOR) + if (!buf->st_rdev && get_major () != DEV_VIRTFS_MAJOR) buf->st_rdev = get_device (); } |