disable output buffering for smbclient

This commit is contained in:
Robin Appelman 2016-04-25 17:44:08 +02:00
commit c50d9aa6a5

View file

@ -61,7 +61,7 @@ class Share extends AbstractShare {
return; return;
} }
$workgroupArgument = ($this->server->getWorkgroup()) ? ' -W ' . escapeshellarg($this->server->getWorkgroup()) : ''; $workgroupArgument = ($this->server->getWorkgroup()) ? ' -W ' . escapeshellarg($this->server->getWorkgroup()) : '';
$command = sprintf('%s %s --authentication-file=%s %s', $command = sprintf('stdbuf -o0 %s %s --authentication-file=%s %s',
$this->system->getSmbclientPath(), $this->system->getSmbclientPath(),
$workgroupArgument, $workgroupArgument,
System::getFD(3), System::getFD(3),