projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77bb33c
)
more destroy potential overflow for x86_64.
author
"Vladimir N. Oleynik"
<dzo@simtreas.ru>
Tue, 31 Jan 2006 11:19:12 +0000
(11:19 -0000)
committer
"Vladimir N. Oleynik"
<dzo@simtreas.ru>
Tue, 31 Jan 2006 11:19:12 +0000
(11:19 -0000)
loginutils/login.c
patch
|
blob
|
history
diff --git
a/loginutils/login.c
b/loginutils/login.c
index 35f9e4a9c2adf696d9ab54376ad186c2f49691ab..0f4b9ad9f03fac5b52b8244a41952342e1a234e0 100644
(file)
--- a/
loginutils/login.c
+++ b/
loginutils/login.c
@@
-466,9
+466,11
@@
static void checkutmp(int picky)
static void setutmp(const char *name, const char *line ATTRIBUTE_UNUSED)
{
+ time_t t_tmp = (time_t)utent.ut_time;
+
utent.ut_type = USER_PROCESS;
strncpy(utent.ut_user, name, sizeof utent.ut_user);
- time(
(time_t*)&utent.ut_time
);
+ time(
&t_tmp
);
/* other fields already filled in by checkutmp above */
setutent();
pututline(&utent);