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>
+
+ * 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
}
}
- 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,
}
}
- 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,