* src/chfn.c: Merge some translated messages.

* src/groupmems.c, src/groupadd.c, src/gpasswd.c, src/chsh.c,
	src/chfn.c: Harmonize *_update() failure messages.
	* src/groupmems.c: Harmonize gr_close() failure messages.
	* src/newgrp.c: Harmonize "unknown GID" messages.
	* src/newusers.c: Move the pwd declaration to a inner block scope.
This commit is contained in:
nekral-guest
2008-08-30 18:28:24 +00:00
parent aa2fee4969
commit 8851893412
8 changed files with 41 additions and 23 deletions

View File

@ -284,7 +284,6 @@ static int add_group (const char *name, const char *gid, gid_t *ngid, uid_t uid)
}
static int get_uid (const char *uid, uid_t *nuid) {
const struct passwd *pwd = NULL;
/*
* The first guess for the UID is either the numerical UID that the
@ -302,6 +301,7 @@ static int get_uid (const char *uid, uid_t *nuid) {
*nuid = (uid_t) i;
} else {
if ('\0' != uid[0]) {
const struct passwd *pwd;
/* local, no need for xgetpwnam */
pwd = getpwnam (uid);
if (NULL == pwd) {