mirror of
https://github.com/danog/tgseclib.git
synced 2025-01-22 05:51:20 +01:00
- add support for the sticky bit
git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@170 21d32557-59b3-4da0-833f-c5933fad653e
This commit is contained in:
parent
bc5e07cd69
commit
d86bf78506
@ -1480,7 +1480,8 @@ class Net_SFTP extends Net_SSH2 {
|
|||||||
function _parseLongname($longname)
|
function _parseLongname($longname)
|
||||||
{
|
{
|
||||||
// http://en.wikipedia.org/wiki/Unix_file_types
|
// 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]) {
|
switch ($longname[0]) {
|
||||||
case '-':
|
case '-':
|
||||||
return NET_SFTP_TYPE_REGULAR;
|
return NET_SFTP_TYPE_REGULAR;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user