3
0
forked from pool/util-linux
util-linux/util-linux-2.17.1-losetup-honor-documented-c-option
Stephan Kulow 4a27d3f4b1 Accepting request 34572 from home:jeff_mahoney:branches:Base:System
Copy from home:jeff_mahoney:branches:Base:System/util-linux via accept of submit request 34572 revision 2.
Request was accepted with message:
Reviewed ok

OBS-URL: https://build.opensuse.org/request/show/34572
OBS-URL: https://build.opensuse.org/package/show/Base:System/util-linux?expand=0&rev=33
2010-03-12 07:00:06 +00:00

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':