diff options
author | Vincent Petry <pvince81@owncloud.com> | 2014-02-24 12:22:02 +0400 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-02-24 12:22:02 +0400 |
commit | 0187537a2e42cdc660f2cd73de0db9ed2bc85170 (patch) | |
tree | 603e7f5ed7673de71338660e8b70b4c839753144 /apps | |
parent | 928947f1c3594e88f6562f6b6cd2574d81c272ff (diff) |
Fixed missing files on SMB storage
Files with attribute "N" weren't parsed out of the file list returned by
smbclient. It seems that these files appear when created on a Linux SMB
mount directly and that have no executable bit.
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_external/3rdparty/smb4php/smb.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_external/3rdparty/smb4php/smb.php b/apps/files_external/3rdparty/smb4php/smb.php index cf7e55c736d..4ecc5b3d250 100644 --- a/apps/files_external/3rdparty/smb4php/smb.php +++ b/apps/files_external/3rdparty/smb4php/smb.php @@ -164,7 +164,7 @@ class smb { $i = ($mode == 'servers') ? array ($name, "server") : array ($name, "workgroup", $master); break; case 'files': - list ($attr, $name) = preg_match ("/^(.*)[ ]+([D|A|H|S|R]+)$/", trim ($regs[1]), $regs2) + list ($attr, $name) = preg_match ("/^(.*)[ ]+([D|A|H|S|R|N]+)$/", trim ($regs[1]), $regs2) ? array (trim ($regs2[2]), trim ($regs2[1])) : array ('', trim ($regs[1])); list ($his, $im) = array ( |