mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-16 02:07:09 +00:00
Fixed a bug in SFTP::chmod not using realpath on the filepath
This commit is contained in:
parent
5321b9b610
commit
b67c690498
@ -1454,6 +1454,7 @@ class Net_SFTP extends Net_SSH2
|
||||
return true;
|
||||
}
|
||||
|
||||
$filename = $this->_realPath($filename);
|
||||
// rather than return what the permissions *should* be, we'll return what they actually are. this will also
|
||||
// tell us if the file actually exists.
|
||||
// incidentally, SFTPv4+ adds an additional 32-bit integer field - flags - to the following:
|
||||
|
Loading…
Reference in New Issue
Block a user