Inform the user if out of memory while updating a group database.

This commit is contained in:
nekral-guest
2007-11-16 23:39:42 +00:00
parent 7ecdf9b71f
commit 9afe59af3e
4 changed files with 19 additions and 3 deletions

View File

@@ -574,7 +574,7 @@ static int update_group (void)
ngrp = __gr_dup (grp);
if (!ngrp) {
fprintf (stderr,
_("%s: out of memory in update_group\n"),
_("%s: Out of memory. Cannot update the group database.\n"),
Prog);
gr_unlock ();
return -1;
@@ -696,8 +696,7 @@ static int update_gshadow (void)
nsgrp = __sgr_dup (sgrp);
if (!nsgrp) {
fprintf (stderr,
_
("%s: out of memory in update_gshadow\n"),
_("%s: Out of memory. Cannot update the shadow group database.\n"),
Prog);
sgr_unlock ();
return -1;