Check for errors in first output from setmode

This commit is contained in:
Robin Appelman 2014-08-27 10:12:33 +02:00
commit 7278910ddc

View file

@ -339,6 +339,7 @@ class Share implements IShare {
// first reset the mode to normal // first reset the mode to normal
$cmd = 'setmode ' . $path . ' -rsha'; $cmd = 'setmode ' . $path . ' -rsha';
$output = $this->execute($cmd); $output = $this->execute($cmd);
$this->parseOutput($output);
// then set the modes we want // then set the modes we want
$cmd = 'setmode ' . $path . ' ' . $modeString; $cmd = 'setmode ' . $path . ' ' . $modeString;