Module Name:    src
Committed By:   jnemeth
Date:           Sun Dec 13 21:55:25 UTC 2020

Modified Files:
        src/sbin/gpt: recover.c

Log Message:
PR/55875 - Valentin -- "gpt recover -r" does nothing

Delete do nothing undocumented option, that was there from initial
import.  No idea what it was intended to do and there is no longer
an "upstream".


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/sbin/gpt/recover.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sbin/gpt/recover.c
diff -u src/sbin/gpt/recover.c:1.18 src/sbin/gpt/recover.c:1.19
--- src/sbin/gpt/recover.c:1.18	Tue Jul  3 03:41:24 2018
+++ src/sbin/gpt/recover.c	Sun Dec 13 21:55:25 2020
@@ -33,7 +33,7 @@
 __FBSDID("$FreeBSD: src/sbin/gpt/recover.c,v 1.8 2005/08/31 01:47:19 marcel Exp $");
 #endif
 #ifdef __RCSID
-__RCSID("$NetBSD: recover.c,v 1.18 2018/07/03 03:41:24 jnemeth Exp $");
+__RCSID("$NetBSD: recover.c,v 1.19 2020/12/13 21:55:25 jnemeth Exp $");
 #endif
 
 #include <sys/types.h>
@@ -149,7 +149,7 @@ recover_gpt_tbl(gpt_t gpt, int type, off
 }
 
 static int
-recover(gpt_t gpt, int recoverable)
+recover(gpt_t gpt)
 {
 	off_t last = gpt_last(gpt);
 	map_t map;
@@ -233,13 +233,9 @@ static int
 cmd_recover(gpt_t gpt, int argc, char *argv[])
 {
 	int ch;
-	int recoverable = 0;
 
 	while ((ch = getopt(argc, argv, "r")) != -1) {
 		switch(ch) {
-		case 'r':
-			recoverable = 1;
-			break;
 		default:
 			return usage();
 		}
@@ -248,5 +244,5 @@ cmd_recover(gpt_t gpt, int argc, char *a
 	if (argc != optind)
 		return usage();
 
-	return recover(gpt, recoverable);
+	return recover(gpt);
 }

Reply via email to