summaryrefslogtreecommitdiff
path: root/debian/patches/428_grpck_add_prune_option
blob: e71f1425ea775bdd065fa29342239b43b34ac10b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Goal: grpck now has an (otherwise undocumented) -p option, so that
      shadowconfig can clean up the results of the above, so the config
      script will fail randomly less often.
Fixes: #103385

Status wrt upstream: It could certainly be submitted to upstream.

--- a/src/grpck.c
+++ b/src/grpck.c
@@ -81,6 +81,7 @@
 /* Options */
 static bool read_only = false;
 static bool sort_mode = false;
+static bool prune = false;
 
 /* local function prototypes */
 static void fail_exit (int status);
@@ -203,7 +204,7 @@
 	/*
 	 * Parse the command line arguments
 	 */
-	while ((c = getopt_long (argc, argv, "hqrR:s",
+	while ((c = getopt_long (argc, argv, "hqprR:s",
 	                         long_options, NULL)) != -1) {
 		switch (c) {
 		case 'h':