From d86bf78506f26c5b3a5157ae056122733b883108 Mon Sep 17 00:00:00 2001 From: Jim Wigginton Date: Wed, 6 Jul 2011 05:43:48 +0000 Subject: [PATCH] - add support for the sticky bit git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@170 21d32557-59b3-4da0-833f-c5933fad653e --- phpseclib/Net/SFTP.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/phpseclib/Net/SFTP.php b/phpseclib/Net/SFTP.php index c86facb1..871681f9 100644 --- a/phpseclib/Net/SFTP.php +++ b/phpseclib/Net/SFTP.php @@ -1480,7 +1480,8 @@ class Net_SFTP extends Net_SSH2 { function _parseLongname($longname) { // http://en.wikipedia.org/wiki/Unix_file_types - if (preg_match('#^[^/]([r-][w-][x-]){3}#', $longname)) { + // http://en.wikipedia.org/wiki/Filesystem_permissions#Notation_of_traditional_Unix_permissions + if (preg_match('#^[^/]([r-][w-][xstST-]){3}#', $longname)) { switch ($longname[0]) { case '-': return NET_SFTP_TYPE_REGULAR;