* 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:
parent
46f6d77c55
commit
1e0450dfb1
@ -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
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user