chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b8e4742
)
utmp: initialize store with the found entry, not with the lookup key
author
Michal Schmidt
<mschmidt@redhat.com>
Sun, 6 Nov 2011 22:31:46 +0000
(23:31 +0100)
committer
Michal Schmidt
<mschmidt@redhat.com>
Mon, 7 Nov 2011 00:10:35 +0000
(
01:10
+0100)
src/utmp-wtmp.c
patch
|
blob
|
history
diff --git
a/src/utmp-wtmp.c
b/src/utmp-wtmp.c
index 98c1a25e84d1ac6d5c60c132e576be1a2016e1df..00e19a30922a5de28d34fd40068b36e6a79d13a5 100644
(file)
--- a/
src/utmp-wtmp.c
+++ b/
src/utmp-wtmp.c
@@
-242,7
+242,7
@@
int utmp_put_dead_process(const char *id, pid_t pid, int code, int status) {
if (found->ut_pid != pid)
return 0;
- memcpy(&store,
&lookup
, sizeof(store));
+ memcpy(&store,
found
, sizeof(store));
store.ut_type = DEAD_PROCESS;
store.ut_exit.e_termination = code;
store.ut_exit.e_exit = status;