[PATCH 9/9] isosize: make --divisor to require argument

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Silly bug, only the short option -d allowed divisor argument.

Signed-off-by: Sami Kerola <kerolasa@xxxxxx>
---
 disk-utils/isosize.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/disk-utils/isosize.c b/disk-utils/isosize.c
index f90029e..5030a50 100644
--- a/disk-utils/isosize.c
+++ b/disk-utils/isosize.c
@@ -186,7 +186,7 @@ int main(int argc, char **argv)
 	long divisor = 0;
 
 	static const struct option longopts[] = {
-		{"divisor", no_argument, 0, 'd'},
+		{"divisor", required_argument, 0, 'd'},
 		{"sectors", no_argument, 0, 'x'},
 		{"version", no_argument, 0, 'V'},
 		{"help", no_argument, 0, 'h'},
-- 
1.9.0

--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux