27 lines
742 B
Plaintext
27 lines
742 B
Plaintext
|
From: Jeff Mahoney <jeffm@suse.com>
|
||
|
Subject: losetup: Honor documented -c option
|
||
|
References: bnc#583677
|
||
|
|
||
|
losetup -h lists -c | --set-capacity as valid options, but doesn't
|
||
|
actually accept -c.
|
||
|
|
||
|
This patch fixes support for -c.
|
||
|
|
||
|
Signed-off-by: Jeff Mahoney <jeffm@suse.com>
|
||
|
Acked-by: Jeff Mahoney <jeffm@suse.com>
|
||
|
---
|
||
|
mount/lomount.c | 2 +-
|
||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
||
|
--- a/mount/lomount.c
|
||
|
+++ b/mount/lomount.c
|
||
|
@@ -1065,7 +1065,7 @@ main(int argc, char **argv) {
|
||
|
if ((p = strrchr(progname, '/')) != NULL)
|
||
|
progname = p+1;
|
||
|
|
||
|
- while ((c = getopt_long(argc, argv, "ade:E:fhj:k:o:p:rsvH:",
|
||
|
+ while ((c = getopt_long(argc, argv, "ade:E:fhj:k:o:p:rsvH:c",
|
||
|
longopts, NULL)) != -1) {
|
||
|
switch (c) {
|
||
|
case 'a':
|