mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 17:24:07 +02:00
using exec to start smbclient, replaces the need to kill forked procs
This commit is contained in:
parent
26b7b87803
commit
e30d3afd08
2 changed files with 4 additions and 13 deletions
|
|
@ -55,6 +55,8 @@ class Share extends AbstractShare {
|
|||
FileInfo::MODE_SYSTEM => 's'
|
||||
];
|
||||
|
||||
const EXEC_CMD = 'exec';
|
||||
|
||||
/**
|
||||
* @param IServer $server
|
||||
* @param string $name
|
||||
|
|
@ -78,7 +80,8 @@ class Share extends AbstractShare {
|
|||
|
||||
protected function getConnection() {
|
||||
$command = sprintf(
|
||||
'%s%s -t %s %s %s %s',
|
||||
'%s %s%s -t %s %s %s %s',
|
||||
self::EXEC_CMD,
|
||||
$this->system->getStdBufPath() ? $this->system->getStdBufPath() . ' -o0 ' : '',
|
||||
$this->system->getSmbclientPath(),
|
||||
$this->server->getOptions()->getTimeout(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue