Skip to content

Commit

Permalink
Bugfix: typo in createContainer() causing passphrase-based creation t…
Browse files Browse the repository at this point in the history
…o fail.
  • Loading branch information
imgrant committed Dec 3, 2015
1 parent 58063c8 commit 74e5180
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
openmediavault-luksencryption (2.0.1) unstable; urgency=high

* Bugfix: typo in createContainer() caused creating containers with passphrases to fail.

-- OpenMediaVault Plugin Developers <[email protected]> Thu, 03 Dec 2015 20:29:01 +0000

openmediavault-luksencryption (2.0.0) unstable; urgency=medium

* Key file support.
Expand Down
3 changes: 2 additions & 1 deletion usr/share/openmediavault/engined/rpc/luks.inc
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,8 @@ class OMVRpcServiceLuksMgmt extends OMVRpcServiceAbstract {
$params['keyfile'],
TRUE);
else
$success = $luks->open($sd->getDeviceFile(), $params['passphrase']);
$success = $luks->create($sd->getDeviceFile(),
$params['passphrase']);
if ($success === FALSE) {
throw new OMVException(OMVErrorMsg::E_EXEC_MISC, sprintf(
gettext("Unable to create the encrypted device: %s"),
Expand Down

0 comments on commit 74e5180

Please sign in to comment.