From: Robin Appelman Date: Tue, 10 Jul 2012 12:40:25 +0000 (+0200) Subject: dont throw errors when opening a dir using fopen over the smb streamwrapper X-Git-Tag: v4.0.5~21 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=71f9a6c09324f841e0c59d2384ff3ec94b941c82;p=nextcloud-server.git dont throw errors when opening a dir using fopen over the smb streamwrapper --- 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); }