aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_external/3rdparty/icewind/smb/src/Share.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_external/3rdparty/icewind/smb/src/Share.php')
-rw-r--r--apps/files_external/3rdparty/icewind/smb/src/Share.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/files_external/3rdparty/icewind/smb/src/Share.php b/apps/files_external/3rdparty/icewind/smb/src/Share.php
index 542eaf0887e..8f1dace2be2 100644
--- a/apps/files_external/3rdparty/icewind/smb/src/Share.php
+++ b/apps/files_external/3rdparty/icewind/smb/src/Share.php
@@ -72,6 +72,8 @@ class Share extends AbstractShare {
if (!$connection->isValid()) {
throw new ConnectionException($connection->readLine());
}
+ // some versions of smbclient add a help message in first of the first prompt
+ $connection->clearTillPrompt();
return $connection;
}
@@ -125,6 +127,7 @@ class Share extends AbstractShare {
//check output for errors
$this->parseOutput($output, $path);
$output = $this->execute('dir');
+
$this->execute('cd /');
return $this->parser->parseDir($output, $path);