mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-04 01:34:07 +02:00
Discard password prompts from smbclient's output
This commit is contained in:
parent
f8bc64f097
commit
bb92259b32
5 changed files with 23 additions and 6 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue