mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-09 07:10:57 +00:00
Merge pull request #486 from vvolodko/patch-1
Fix Net_SFTP::filetype() block device recognition. * vvolodko/patch-1: Fix Net_SFTP::filetype() block device recognition.
This commit is contained in:
commit
3826ef608a
@ -2367,7 +2367,7 @@ class Net_SFTP extends Net_SSH2
|
|||||||
}
|
}
|
||||||
|
|
||||||
switch ($type) {
|
switch ($type) {
|
||||||
case NET_SFTP_BLOCK_DEVICE: return 'block';
|
case NET_SFTP_TYPE_BLOCK_DEVICE: return 'block';
|
||||||
case NET_SFTP_TYPE_CHAR_DEVICE: return 'char';
|
case NET_SFTP_TYPE_CHAR_DEVICE: return 'char';
|
||||||
case NET_SFTP_TYPE_DIRECTORY: return 'dir';
|
case NET_SFTP_TYPE_DIRECTORY: return 'dir';
|
||||||
case NET_SFTP_TYPE_FIFO: return 'fifo';
|
case NET_SFTP_TYPE_FIFO: return 'fifo';
|
||||||
|
Loading…
Reference in New Issue
Block a user