diff --git a/lib/private/files/objectstore/eosutil.php b/lib/private/files/objectstore/eosutil.php index 499d3da789da..137ba1713efe 100644 --- a/lib/private/files/objectstore/eosutil.php +++ b/lib/private/files/objectstore/eosutil.php @@ -762,7 +762,7 @@ public static function createVersion($eosPath) { $eosPathEscaped = escapeshellarg($eosPath); list($uid, $gid) = self::getEosRole($eosPath, false); //$uid = 0; $gid = 0; // root is the only one allowed to change permissions - $cmd = "eos -b -r $uid $gid cp $eosPathEscaped $eosPathEscaped"; + $cmd = "eos -b -r $uid $gid file version $eosPathEscaped"; list($result, $errcode) = EosCmd::exec($cmd); if ($errcode !== 0) { return false;