diff options
Diffstat (limited to 'debian/patches/428_grpck_add_prune_option')
-rw-r--r-- | debian/patches/428_grpck_add_prune_option | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/debian/patches/428_grpck_add_prune_option b/debian/patches/428_grpck_add_prune_option new file mode 100644 index 0000000..e71f142 --- /dev/null +++ b/debian/patches/428_grpck_add_prune_option @@ -0,0 +1,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': |