projects
/
platform
/
upstream
/
cryptsetup.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2bda053
)
Allow manipulate with device with only header on it (no data).
author
Milan Broz
<gmazyland@gmail.com>
Fri, 23 Oct 2009 10:43:03 +0000
(10:43 +0000)
committer
Milan Broz
<gmazyland@gmail.com>
Fri, 23 Oct 2009 10:43:03 +0000
(10:43 +0000)
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@133
36d66b0a
-2a48-0410-832c-
cd162a569da5
lib/setup.c
patch
|
blob
|
history
diff --git
a/lib/setup.c
b/lib/setup.c
index
246795b
..
c3f2e6c
100644
(file)
--- a/
lib/setup.c
+++ b/
lib/setup.c
@@
-259,7
+259,7
@@
static int device_check_and_adjust(struct crypt_device *cd,
log_err(cd, _("Device %s has zero size.\n"), device);
return -ENOTBLK;
}
- if (*size <
=
*offset) {
+ if (*size < *offset) {
log_err(cd, _("Device %s is too small.\n"), device);
return -EINVAL;
}