projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d7fc909
)
utmp: fix reboot string
author
Lennart Poettering
<lennart@poettering.net>
Fri, 23 Apr 2010 22:41:02 +0000
(
00:41
+0200)
committer
Lennart Poettering
<lennart@poettering.net>
Fri, 23 Apr 2010 22:41:02 +0000
(
00:41
+0200)
utmp-wtmp.c
patch
|
blob
|
history
diff --git
a/utmp-wtmp.c
b/utmp-wtmp.c
index
0cc9cec
..
cb3f201
100644
(file)
--- a/
utmp-wtmp.c
+++ b/
utmp-wtmp.c
@@
-179,7
+179,7
@@
int utmp_put_reboot(usec_t timestamp) {
init_entry(&store, timestamp);
store.ut_type = BOOT_TIME;
- strncpy(store.ut_user, "reboot", sizeof(store.ut_
type
));
+ strncpy(store.ut_user, "reboot", sizeof(store.ut_
user
));
return write_entry_both(&store);
}