|
Lines 262-267
Link Here
|
| 262 |
char *username = cmd; /* temp buffer */ |
262 |
char *username = cmd; /* temp buffer */ |
| 263 |
char *s, *group; |
263 |
char *s, *group; |
| 264 |
struct group *grp; |
264 |
struct group *grp; |
|
|
265 |
#ifdef LOGIN_CAP |
| 266 |
login_cap_t *lc; |
| 267 |
#endif |
| 265 |
|
268 |
|
| 266 |
Debug(DPARS, ("load_entry()...about to parse username\n")) |
269 |
Debug(DPARS, ("load_entry()...about to parse username\n")) |
| 267 |
ch = get_string(username, MAX_COMMAND, file, " \t"); |
270 |
ch = get_string(username, MAX_COMMAND, file, " \t"); |
|
Lines 287-296
Link Here
|
| 287 |
ecode = e_mem; |
290 |
ecode = e_mem; |
| 288 |
goto eof; |
291 |
goto eof; |
| 289 |
} |
292 |
} |
| 290 |
if (login_getclass(e->class) == NULL) { |
293 |
if ((lc = login_getclass(e->class)) == NULL) { |
| 291 |
ecode = e_class; |
294 |
ecode = e_class; |
| 292 |
goto eof; |
295 |
goto eof; |
| 293 |
} |
296 |
} |
|
|
297 |
login_close(lc); |
| 294 |
#endif |
298 |
#endif |
| 295 |
grp = NULL; |
299 |
grp = NULL; |
| 296 |
if ((s = strrchr(username, ':')) != NULL) { |
300 |
if ((s = strrchr(username, ':')) != NULL) { |
|
Lines 416-422
Link Here
|
| 416 |
return e; |
420 |
return e; |
| 417 |
|
421 |
|
| 418 |
eof: |
422 |
eof: |
| 419 |
free(e); |
423 |
free_entry(e); |
| 420 |
if (ecode != e_none && error_func) |
424 |
if (ecode != e_none && error_func) |
| 421 |
(*error_func)(ecodes[(int)ecode]); |
425 |
(*error_func)(ecodes[(int)ecode]); |
| 422 |
while (ch != EOF && ch != '\n') |
426 |
while (ch != EOF && ch != '\n') |