Skip to contentSkip to conversation

wipefs: Allow b to be used as the short option for backup

PATCH Applied [email protected] 2 participants 2 messages Dec 10, 2015 – Dec 14, 2015 Util-Linux package

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 wipefs: Allow b to be used as the short option for backup

From: Bill Pemberton <[email protected]>

'b' is documented as the short option for backup but b was not added to the optstring on the getopt_long call. Add it.

---
 misc-utils/wipefs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
misc-utils/wipefs.c +1 -1
index 589f53503847..594894447e63 100644
@@ -504,7 +504,7 @@ main(int argc, char **argv)
 	textdomain(PACKAGE);
 	atexit(close_stdout);
 
-	while ((c = getopt_long(argc, argv, "afhno:pqt:V", longopts, NULL)) != -1) {
+	while ((c = getopt_long(argc, argv, "abfhno:pqt:V", longopts, NULL)) != -1) {
 
 		err_exclusive_options(c, longopts, excl, excl_st);
 
Signature · 1 line
2.5.0
maintainer Applied
#1 lore raw
Quoted 2 lines · On Thu, Dec 10, 2015 at 10:02:34AM -0500, [email protected] wrote:
 misc-utils/wipefs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks.

Signature · 2 lines
 Karel Zak  <[email protected]>
 http://karelzak.blogspot.com