diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2006-12-10 16:18:51 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2006-12-10 16:18:51 +0000 |
commit | 37ae69e8b1c769130bc9d3f80f5e4c73deb5b790 (patch) | |
tree | b8ade0942ff64fec752b0469eaccf32a8c328b1d /winsup | |
parent | 30cf835f7e12552bac12eb1cd9123febe909d6e2 (diff) | |
download | cygnal-37ae69e8b1c769130bc9d3f80f5e4c73deb5b790.tar.gz cygnal-37ae69e8b1c769130bc9d3f80f5e4c73deb5b790.tar.bz2 cygnal-37ae69e8b1c769130bc9d3f80f5e4c73deb5b790.zip |
* fhandler.cc (rootdir): Don't look for volume mount points on remote
shares.
Diffstat (limited to 'winsup')
-rw-r--r-- | winsup/cygwin/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygwin/fhandler.cc | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index d9faceb85..27b6724ab 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,5 +1,10 @@ 2006-12-10 Corinna Vinschen <corinna@vinschen.de> + * fhandler.cc (rootdir): Don't look for volume mount points on remote + shares. + +2006-12-10 Corinna Vinschen <corinna@vinschen.de> + * fhandler.cc (rootdir): Drop useless post-increment. Take volume mount points into account. (check_posix_perm): Allocate space for root directory big enough. diff --git a/winsup/cygwin/fhandler.cc b/winsup/cygwin/fhandler.cc index 03dc0b803..dfa2e2177 100644 --- a/winsup/cygwin/fhandler.cc +++ b/winsup/cygwin/fhandler.cc @@ -1240,8 +1240,9 @@ rootdir (const char *full_path, char *root_path) *rootp++ = '\\'; *rootp = '\0'; - /* This also determines whether reparse points are available. */ - if (!wincap.has_guid_volumes ()) + /* This determines whether reparse points are available. Reparse points + on remote shares are not recognized by Windows. */ + if (!wincap.has_guid_volumes () || GetDriveType (root_path) == DRIVE_REMOTE) return root_path; PREPARSE_DATA_BUFFER rp = (PREPARSE_DATA_BUFFER) |