diff --git a/phpseclib/Net/SFTP.php b/phpseclib/Net/SFTP.php index 5335927d..67dcadaf 100644 --- a/phpseclib/Net/SFTP.php +++ b/phpseclib/Net/SFTP.php @@ -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';