Skip to content

Commit

Permalink
Merge pull request #21955 from nextcloud/backport/21949/stable19
Browse files Browse the repository at this point in the history
[stable19] update icewind/smb to 3.2.6
  • Loading branch information
rullzer committed Jul 23, 2020
2 parents fcc708f + d588471 commit fad4f95
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 30 deletions.
2 changes: 1 addition & 1 deletion apps/files_external/3rdparty/composer.json
Expand Up @@ -9,6 +9,6 @@
},
"require": {
"icewind/streams": "0.7.1",
"icewind/smb": "3.2.5"
"icewind/smb": "3.2.6"
}
}
15 changes: 7 additions & 8 deletions apps/files_external/3rdparty/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion apps/files_external/3rdparty/composer/autoload_psr4.php
Expand Up @@ -8,6 +8,5 @@
return array(
'Icewind\\Streams\\Tests\\' => array($vendorDir . '/icewind/streams/tests'),
'Icewind\\Streams\\' => array($vendorDir . '/icewind/streams/src'),
'Icewind\\SMB\\Test\\' => array($vendorDir . '/icewind/smb/tests'),
'Icewind\\SMB\\' => array($vendorDir . '/icewind/smb/src'),
);
5 changes: 0 additions & 5 deletions apps/files_external/3rdparty/composer/autoload_static.php
Expand Up @@ -11,7 +11,6 @@ class ComposerStaticInit98fe9b281934250b3a93f69a5ce843b3
array (
'Icewind\\Streams\\Tests\\' => 22,
'Icewind\\Streams\\' => 16,
'Icewind\\SMB\\Test\\' => 17,
'Icewind\\SMB\\' => 12,
),
);
Expand All @@ -25,10 +24,6 @@ class ComposerStaticInit98fe9b281934250b3a93f69a5ce843b3
array (
0 => __DIR__ . '/..' . '/icewind/streams/src',
),
'Icewind\\SMB\\Test\\' =>
array (
0 => __DIR__ . '/..' . '/icewind/smb/tests',
),
'Icewind\\SMB\\' =>
array (
0 => __DIR__ . '/..' . '/icewind/smb/src',
Expand Down
15 changes: 7 additions & 8 deletions apps/files_external/3rdparty/composer/installed.json
@@ -1,17 +1,17 @@
[
{
"name": "icewind/smb",
"version": "v3.2.5",
"version_normalized": "3.2.5.0",
"version": "v3.2.6",
"version_normalized": "3.2.6.0",
"source": {
"type": "git",
"url": "https://github.com/icewind1991/SMB.git",
"reference": "80921d69f5e47157c825f0bdac6c838fe0b901b2"
"reference": "507b186800ac6c3b287604a4ff9b138cf430da79"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/icewind1991/SMB/zipball/80921d69f5e47157c825f0bdac6c838fe0b901b2",
"reference": "80921d69f5e47157c825f0bdac6c838fe0b901b2",
"url": "https://api.github.com/repos/icewind1991/SMB/zipball/507b186800ac6c3b287604a4ff9b138cf430da79",
"reference": "507b186800ac6c3b287604a4ff9b138cf430da79",
"shasum": ""
},
"require": {
Expand All @@ -22,13 +22,12 @@
"friendsofphp/php-cs-fixer": "^2.13",
"phpunit/phpunit": "^7.0"
},
"time": "2020-05-27T13:56:04+00:00",
"time": "2020-07-20T14:12:51+00:00",
"type": "library",
"installation-source": "dist",
"autoload": {
"psr-4": {
"Icewind\\SMB\\": "src/",
"Icewind\\SMB\\Test\\": "tests/"
"Icewind\\SMB\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
Expand Down
6 changes: 5 additions & 1 deletion apps/files_external/3rdparty/icewind/smb/composer.json
Expand Up @@ -18,7 +18,11 @@
},
"autoload" : {
"psr-4": {
"Icewind\\SMB\\": "src/",
"Icewind\\SMB\\": "src/"
}
},
"autoload-dev" : {
"psr-4": {
"Icewind\\SMB\\Test\\": "tests/"
}
}
Expand Down
Expand Up @@ -108,6 +108,11 @@ public function getMTime() {
* @return int
*/
protected function getMode() {
$mode = $this->stat()['mode'];

// Let us ignore the ATTR_NOT_CONTENT_INDEXED for now
$mode &= ~0x00002000;

return $this->stat()['mode'];
}

Expand All @@ -116,8 +121,8 @@ protected function getMode() {
*/
public function isDirectory() {
$mode = $this->getMode();
if ($mode > 0x80) {
return (bool)($mode & 0x4000); // 0x80: unix directory flag
if ($mode > 0x1000) {
return (bool)($mode & 0x4000); // 0x4000: unix directory flag
} else {
return (bool)($mode & IFileInfo::MODE_DIRECTORY);
}
Expand All @@ -128,7 +133,7 @@ public function isDirectory() {
*/
public function isReadOnly() {
$mode = $this->getMode();
if ($mode > 0x80) {
if ($mode > 0x1000) {
return !(bool)($mode & 0x80); // 0x80: owner write permissions
} else {
return (bool)($mode & IFileInfo::MODE_READONLY);
Expand All @@ -140,7 +145,7 @@ public function isReadOnly() {
*/
public function isHidden() {
$mode = $this->getMode();
if ($mode > 0x80) {
if ($mode > 0x1000) {
return strlen($this->name) > 0 && $this->name[0] === '.';
} else {
return (bool)($mode & IFileInfo::MODE_HIDDEN);
Expand All @@ -152,7 +157,7 @@ public function isHidden() {
*/
public function isSystem() {
$mode = $this->getMode();
if ($mode > 0x80) {
if ($mode > 0x1000) {
return false;
} else {
return (bool)($mode & IFileInfo::MODE_SYSTEM);
Expand All @@ -164,7 +169,7 @@ public function isSystem() {
*/
public function isArchived() {
$mode = $this->getMode();
if ($mode > 0x80) {
if ($mode > 0x1000) {
return false;
} else {
return (bool)($mode & IFileInfo::MODE_ARCHIVE);
Expand Down

0 comments on commit fad4f95

Please sign in to comment.