Fix Net_SFTP::filetype() block device recognition.

This commit is contained in:
Vladimir Volodko 2014-10-09 12:46:58 +07:00
parent c2be2b5a3b
commit 6715c41e1f

View File

@ -2367,7 +2367,7 @@ class Net_SFTP extends Net_SSH2
}
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_DIRECTORY: return 'dir';
case NET_SFTP_TYPE_FIFO: return 'fifo';