diff options
author | Adam Jackson <ajax@nwnk.net> | 2004-10-13 22:14:22 +0000 |
---|---|---|
committer | Adam Jackson <ajax@nwnk.net> | 2004-10-13 22:14:22 +0000 |
commit | e3025b01b3fdd32bde8120dec1b0061e1449c6e9 (patch) | |
tree | a408b1c46fd9c8765f86e3308d3bfa8b5b8b17d9 /sessreg.c | |
parent | 922a3ce29d3fe91f57fd41ea87e0e56b72ee9670 (diff) |
Bug #1627: Zero out struct utmp before writing it to prevent garbagexprint_packagertest_20041217_basexprint_packagertest_20041125_basesco_port_update-baseXORG-6_99_99_900XORG-6_8_99_900XORG-6_8_99_9XORG-6_8_99_8XORG-6_8_99_7XORG-6_8_99_6XORG-6_8_99_5XORG-6_8_99_4XORG-6_8_99_3XORG-6_8_99_2XORG-6_8_99_16XORG-6_8_99_15XORG-6_8_99_14XORG-6_8_99_13XORG-6_8_99_12XORG-6_8_99_11XORG-6_8_99_10XORG-6_8_99_1xprint_packagertest_20041217xprint_packagertest_20041125sco_port_update
fields. (Egmont Koblinger)
Diffstat (limited to 'sessreg.c')
-rw-r--r-- | sessreg.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -359,6 +359,7 @@ main (int argc, char **argv) static void set_utmp (struct utmp *u, char *line, char *user, char *host, Time_t date, int addp) { + bzero (u, sizeof (*u)); if (line) (void) strncpy (u->ut_line, line, sizeof (u->ut_line)); else |