Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-07-10 16:40:25 +0400
committerRobin Appelman <icewind@owncloud.com>2012-07-10 16:40:25 +0400
commit71f9a6c09324f841e0c59d2384ff3ec94b941c82 (patch)
tree1490fe2b9a988e83cb6be57b00ca6dd934499218 /3rdparty
parentb8a6ffe261268603f2ed8e0c1cd91969ea6a1863 (diff)
dont throw errors when opening a dir using fopen over the smb streamwrapper
Diffstat (limited to '3rdparty')
-rw-r--r--3rdparty/smb4php/smb.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/3rdparty/smb4php/smb.php b/3rdparty/smb4php/smb.php
index 12c5890723b..c50b26b935e 100644
--- a/3rdparty/smb4php/smb.php
+++ b/3rdparty/smb4php/smb.php
@@ -166,6 +166,8 @@ class smb {
return false;
}elseif(substr($regs[0],0,31)=='NT_STATUS_OBJECT_PATH_NOT_FOUND'){
return false;
+ }elseif(substr($regs[0],0,29)=='NT_STATUS_FILE_IS_A_DIRECTORY'){
+ return false;
}
trigger_error($regs[0].' params('.$params.')', E_USER_ERROR);
}