* 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
This commit is contained in:
Vendored
+14
@@ -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) <nicolas.francois@centraliens.net> Thu, 16 Feb 2012 20:58:49 +0100
|
||||
|
||||
shadow (1:4.1.5-1) unstable; urgency=low
|
||||
|
||||
* The "Charolais" release.
|
||||
|
||||
-26
@@ -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':
|
||||
Vendored
+4
-4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user