]> source.dussan.org Git - nextcloud-server.git/commitdiff
Silence output of 'which' command used in smbclient detection
authorMichael Monreal <michael.monreal@gmail.com>
Fri, 27 Dec 2013 17:10:47 +0000 (18:10 +0100)
committerMichael Monreal <michael.monreal@gmail.com>
Fri, 27 Dec 2013 17:10:47 +0000 (18:10 +0100)
apps/files_external/lib/config.php

index 12836c7b88c169b78cb9f776cc4a82bfd9e27594..122cc57debc9f607d37edf491f20893004568dd1 100755 (executable)
@@ -431,7 +431,7 @@ class OC_Mount_Config {
         */
        public static function checksmbclient() {
                if(function_exists('shell_exec')) {
-                       $output=shell_exec('which smbclient');
+                       $output=shell_exec('which smbclient 2> /dev/null');
                        return !empty($output);
                }else{
                        return false;