* src/pwunconv.c: Do not check spw_close() return value (file is

opened readonly).
	* src/grpunconv.c: Do not check sgr_close() return value (file is
	opened readonly).
This commit is contained in:
nekral-guest 2012-05-18 19:32:32 +00:00
parent 46f6d77c55
commit 1e0450dfb1
3 changed files with 9 additions and 14 deletions

View File

@ -1,3 +1,10 @@
2012-05-18 Nicolas François <nicolas.francois@centraliens.net>
* src/pwunconv.c: Do not check spw_close() return value (file is
opened readonly).
* src/grpunconv.c: Do not check sgr_close() return value (file is
opened readonly).
2012-05-18 Nicolas François <nicolas.francois@centraliens.net>
* NEWS, src/userdel.c: Fix segfault when userdel removes the

View File

@ -205,13 +205,7 @@ int main (int argc, char **argv)
}
}
if (sgr_close () == 0) {
fprintf (stderr,
_("%s: failure while writing changes to %s\n"),
Prog, sgr_dbname ());
SYSLOG ((LOG_ERR, "failure while writing changes to %s", sgr_dbname ()));
fail_exit (3);
}
(void) sgr_close (); /* was only open O_RDONLY */
if (gr_close () == 0) {
fprintf (stderr,

View File

@ -221,13 +221,7 @@ int main (int argc, char **argv)
}
}
if (spw_close () == 0) {
fprintf (stderr,
_("%s: failure while writing changes to %s\n"),
Prog, spw_dbname ());
SYSLOG ((LOG_ERR, "failure while writing changes to %s", spw_dbname ()));
fail_exit (3);
}
(void) spw_close (); /* was only open O_RDONLY */
if (pw_close () == 0) {
fprintf (stderr,