diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | sshfs.c | 7 |
2 files changed, 12 insertions, 0 deletions
@@ -1,3 +1,8 @@ +2014-01-07 Miklos Szeredi <miklos@szeredi.hu> + + * Map SSH2_FX_FAILURE to ENOTEMPTY for rmdir. Reported by Ross + Lagerwall + 2012-05-14 Miklos Szeredi <miklos@szeredi.hu> * When checking root directory use LSTAT not STAT. This prevents @@ -1790,6 +1790,13 @@ static int sftp_request_wait(struct request *req, uint8_t type, err = -EIO; break; + case SSH_FX_FAILURE: + if (type == SSH_FXP_RMDIR) + err = -ENOTEMPTY; + else + err = -EPERM; + break; + default: err = -sftp_error_to_errno(serr); } |