Discard password prompts from smbclient's output

This commit is contained in:
Robin Appelman 2013-11-26 16:58:23 +01:00
commit bb92259b32
5 changed files with 23 additions and 6 deletions

View file

@ -44,6 +44,7 @@ class Share {
' //' . $this->server->getHost() . '/' . $this->name;
$this->connection = new Connection($command);
$this->connection->write($this->server->getPassword());
$this->connection->readLine(); // discard password prompt
if (!$this->connection->isValid()) {
throw new ConnectionError();
}