From 057ad9bb6998a5910ff7f7f4016c21f4387c1cda Mon Sep 17 00:00:00 2001 From: nekral-guest Date: Thu, 16 Feb 2012 20:28:21 +0000 Subject: [PATCH] * debian/patches/428_grpck_add_prune_option: removed -p option. The option was not documented and was meant to fix consequences of a bug now fixed more than 10 years ago. Note that debian/patches/428_grpck_add_prune_option was broken by the refresh in 4.1.5-1 * debian/shadowconfig.sh: Display issues, but dot not prompt interactively to fix passwd/group/shadow/gshadow issues. Closes: #638263 --- debian/changelog | 14 ++++++++++++ debian/patches/428_grpck_add_prune_option | 26 ----------------------- debian/shadowconfig.sh | 8 +++---- 3 files changed, 18 insertions(+), 30 deletions(-) delete mode 100644 debian/patches/428_grpck_add_prune_option diff --git a/debian/changelog b/debian/changelog index 5c24b678..8f0a5a5d 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,17 @@ +shadow (1:4.1.5.1-1) unstable; urgency=low + + * The "Gruyère" release. + + * New upstream release: + - + * debian/patches/428_grpck_add_prune_option: removed -p option. The option + was not documented and was meant to fix consequences of a bug now fixed + more than 10 years ago. + * debian/shadowconfig.sh: Display issues, but dot not prompt interactively + to fix passwd/group/shadow/gshadow issues. Closes: #638263 + + -- Nicolas FRANCOIS (Nekral) Thu, 16 Feb 2012 20:58:49 +0100 + shadow (1:4.1.5-1) unstable; urgency=low * The "Charolais" release. diff --git a/debian/patches/428_grpck_add_prune_option b/debian/patches/428_grpck_add_prune_option deleted file mode 100644 index e71f1425..00000000 --- a/debian/patches/428_grpck_add_prune_option +++ /dev/null @@ -1,26 +0,0 @@ -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': diff --git a/debian/shadowconfig.sh b/debian/shadowconfig.sh index 49953238..28df7512 100644 --- a/debian/shadowconfig.sh +++ b/debian/shadowconfig.sh @@ -5,8 +5,8 @@ set -e shadowon () { set -e - pwck -q - grpck -p + pwck -q -r + grpck -r pwconv grpconv chown root:root /etc/passwd /etc/group @@ -17,8 +17,8 @@ shadowon () { shadowoff () { set -e - pwck -q - grpck -p + pwck -q -r + grpck -r pwunconv grpunconv # sometimes the passwd perms get munged