* 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

@ -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,