Fix create command to properly handle keyfile size.
authorMilan Broz <gmazyland@gmail.com>
Thu, 9 Dec 2010 17:58:50 +0000 (17:58 +0000)
committerMilan Broz <gmazyland@gmail.com>
Thu, 9 Dec 2010 17:58:50 +0000 (17:58 +0000)
commit68c2ac10874ec13b745fc78aa5da7d584321a103
tree551f7972e0accb756e80953f472e51486dcbf95d
parent6cae0b0efbbaf6274677f217722bfa747ee3c48a
Fix create command to properly handle keyfile size.

- for keyfile reset hash, it make no sense (see man page)
- use activate_by_keyfile to make code more readable
(it still does the stem thing)

- if keyfile specified, read only key and do not do exhausted
read (regression from 1.1.3)

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@399 36d66b0a-2a48-0410-832c-cd162a569da5
ChangeLog
src/cryptsetup.c
tests/compat-test