This prevents I/O error being returned after a successful mount if a symlink is
mounted.
Reported by Bart Friederichs
+2012-05-14 Miklos Szeredi <miklos@szeredi.hu>
+
+ * When checking root directory use LSTAT not STAT. This prevents
+ I/O error being returned after a successful mount if a symlink is
+ mounted. Reported by Bart Friederichs
+
2012-03-08 Miklos Szeredi <miklos@szeredi.hu>
* Released 2.4
buf_init(&buf, 0);
buf_add_string(&buf, remote_dir);
buf_to_iov(&buf, &iov[0]);
- if (sftp_send_iov(SSH_FXP_STAT, id, iov, 1) == -1)
+ if (sftp_send_iov(SSH_FXP_LSTAT, id, iov, 1) == -1)
goto out;
buf_clear(&buf);
if (sftp_read(&type, &buf) == -1)