Do not rewrite the group and gshadow file in case of error.
This commit is contained in:
parent
9e07fec6ba
commit
a2242f6f1b
@ -1,3 +1,8 @@
|
|||||||
|
2008-03-08 Nicolas François <nicolas.francois@centraliens.net>
|
||||||
|
|
||||||
|
* NEWS, src/groupdel.c: Do not rewrite the group and gshadow file
|
||||||
|
in case of error.
|
||||||
|
|
||||||
2008-03-08 Nicolas François <nicolas.francois@centraliens.net>
|
2008-03-08 Nicolas François <nicolas.francois@centraliens.net>
|
||||||
|
|
||||||
* src/groupdel.c: Do not log that the group was deleted if an
|
* src/groupdel.c: Do not log that the group was deleted if an
|
||||||
@ -5,8 +10,8 @@
|
|||||||
|
|
||||||
2008-03-08 Nicolas François <nicolas.francois@centraliens.net>
|
2008-03-08 Nicolas François <nicolas.francois@centraliens.net>
|
||||||
|
|
||||||
* src/groupdel.c: Do not raise an error if the group does not
|
* NEWS, src/groupdel.c: Do not raise an error if the group does
|
||||||
exist in the gshadow file.
|
not exist in the gshadow file.
|
||||||
|
|
||||||
2008-03-08 Nicolas François <nicolas.francois@centraliens.net>
|
2008-03-08 Nicolas François <nicolas.francois@centraliens.net>
|
||||||
|
|
||||||
|
1
NEWS
1
NEWS
@ -33,6 +33,7 @@ shadow-4.1.0 -> shadow-4.1.1 UNRELEASED
|
|||||||
* New option -r, --system for system accounts.
|
* New option -r, --system for system accounts.
|
||||||
- groupdel
|
- groupdel
|
||||||
* Do not fail if the group does not exist in the gshadow file.
|
* Do not fail if the group does not exist in the gshadow file.
|
||||||
|
* Do not rewrite the group or gshadow file in case of error.
|
||||||
- groupmems
|
- groupmems
|
||||||
* Fix buffer overflow when adding an user to a group. Thanks to Peter Vrabec.
|
* Fix buffer overflow when adding an user to a group. Thanks to Peter Vrabec.
|
||||||
- groupmod
|
- groupmod
|
||||||
|
@ -340,9 +340,10 @@ int main (int argc, char **argv)
|
|||||||
open_files ();
|
open_files ();
|
||||||
|
|
||||||
grp_update ();
|
grp_update ();
|
||||||
close_files ();
|
if (errors == 0) {
|
||||||
|
close_files ();
|
||||||
nscd_flush_cache ("group");
|
nscd_flush_cache ("group");
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef USE_PAM
|
#ifdef USE_PAM
|
||||||
if (retval == PAM_SUCCESS)
|
if (retval == PAM_SUCCESS)
|
||||||
|
Loading…
Reference in New Issue
Block a user