* src/newgrp.c: Limit the scope of variable pid.
* src/login_nopam.c: Limit the scope of variables end, lineno, i, str_len. * src/logoutd.c: Limit the scope of variable c. * src/vipw.c: Re-indent. * src/vipw.c: Close the file after the creation of the backup. * src/useradd.c (set_default): Close input file on failure. * src/useradd.c: Limit the scope of variables spool, file, fd, gr, gid, mode. * src/passwd.c: Limit the scope of variables last and ok. * src/chage.c: Fix typo (non breaking space). * src/login.c: Limit the scope of variables erasechar killchar, c, failed. * src/groups.c: Limit the scope of variable ngroups, pri_grp, i. * src/id.c: Limit the scope of variable i.
This commit is contained in:
@ -485,6 +485,7 @@ static int set_defaults (void)
|
||||
fprintf (stderr,
|
||||
_("%s: line too long in %s: %s..."),
|
||||
Prog, def_file, buf);
|
||||
(void) fclose (ifp);
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
@ -1804,13 +1805,13 @@ static void create_home (void)
|
||||
*/
|
||||
static void create_mail (void)
|
||||
{
|
||||
char *spool, *file;
|
||||
int fd;
|
||||
struct group *gr;
|
||||
gid_t gid;
|
||||
mode_t mode;
|
||||
|
||||
if (strcasecmp (create_mail_spool, "yes") == 0) {
|
||||
char *spool, *file;
|
||||
int fd;
|
||||
struct group *gr;
|
||||
gid_t gid;
|
||||
mode_t mode;
|
||||
|
||||
spool = getdef_str ("MAIL_DIR");
|
||||
if (NULL == spool) {
|
||||
spool = "/var/mail";
|
||||
|
Reference in New Issue
Block a user