3
0
forked from pool/util-linux
util-linux/util-linux-2.17.1-losetup-honor-documented-c-option
Hendrik Vogelsang a2c5ceae0b - update to version 2.17.2
- fix small typo in v2.17.1-ReleaseNotes
   - fix -b <sectorsize> fdisk 
   - fix typo in ionice
   - fix display of device size, fix infinite loop when probe chain
     bails out early, more robust minix probing, remove "0x" prefix
     from DRBD UUID, reset BLKID_TINY_DEV flag in
     blkid_probe_set_device, support alignment_offset=-1 in libblkid
   - fix cpuid opcode detection in lscpu
   - more explicitly explain fstab usage in mount.8, posix option
     of vfat is obsolete, properly ignore comments in
     /etc/filesystems in mount
   - update ja.po, pl.po, update vi.po
   - remove " (deleted)" from filenames from /proc/swaps
   - cleanup usage() and man page of wipefs

OBS-URL: https://build.opensuse.org/package/show/Base:System/util-linux?expand=0&rev=35
2010-04-06 13:26:58 +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':