version 1.25, 2014/10/17 08:03:04 |
version 1.26, 2014/10/17 20:16:13 |
|
|
pn->dir = estrdup(pw->pw_dir); |
pn->dir = estrdup(pw->pw_dir); |
pn->shell = estrdup(pw->pw_shell); |
pn->shell = estrdup(pw->pw_shell); |
|
|
(void)strncpy(bp = tbuf, pw->pw_gecos, sizeof(tbuf)); |
(void)strlcpy(bp = tbuf, pw->pw_gecos, sizeof(tbuf)); |
|
|
/* ampersands get replaced by the login name */ |
/* ampersands get replaced by the login name */ |
if (!(p = strsep(&bp, ","))) |
if (!(p = strsep(&bp, ","))) |
|
|
char *p, *t; |
char *p, *t; |
char name[1024]; |
char name[1024]; |
|
|
(void)strncpy(p = tbuf, pw->pw_gecos, sizeof(tbuf)); |
(void)strlcpy(p = tbuf, pw->pw_gecos, sizeof(tbuf)); |
|
|
/* ampersands get replaced by the login name */ |
/* ampersands get replaced by the login name */ |
if (!(p = strtok(p, ","))) |
if (!(p = strtok(p, ","))) |