diff options
author | nectar <nectar@FreeBSD.org> | 2003-04-18 17:27:05 +0000 |
---|---|---|
committer | nectar <nectar@FreeBSD.org> | 2003-04-18 17:27:05 +0000 |
commit | d53b36cf851bcc2e9e9b875e0d7f39356f15f0af (patch) | |
tree | 970d280792e7945e03e260da34da4dc8302ab937 /sys/kern/subr_disk.c | |
parent | 83fe46be1839e24062ca7d8914d86a3a2142e114 (diff) | |
download | FreeBSD-src-d53b36cf851bcc2e9e9b875e0d7f39356f15f0af.zip FreeBSD-src-d53b36cf851bcc2e9e9b875e0d7f39356f15f0af.tar.gz |
Don't use `memset' to initialize a struct passwd. A module
may not fill in all fields, and in the case of string fields, this could
cause trouble for applications. (The only likely example is `pw_class',
because this field is not used by all modules in all cases.)
Move initialization of struct passwd from module-specific code to the
dispatch code.
The problem of a NULL pw_class was
Noticed by: Philip Paeps <philip@paeps.cx>
and the c^Htrusty ssh(1) command.
Déjà vu by: getpwent.c revision 1.56
Sponsored by: DARPA, Network Associates Laboratories
Diffstat (limited to 'sys/kern/subr_disk.c')
0 files changed, 0 insertions, 0 deletions