mirror of
https://github.com/systemd/systemd.git
synced 2025-01-25 10:04:04 +03:00
utmp-wtmp: fix wrong suffix assignment on putting dead process
Fixes a bug introduced by f1d553e9dfd56f95b7564dd20a0b56e6a0d6492c. Fixes #30213.
This commit is contained in:
parent
14338cca99
commit
1568430c65
@ -221,7 +221,7 @@ int utmp_put_dead_process(const char *id, pid_t pid, int code, int status) {
|
||||
utmpx = utxent_start();
|
||||
|
||||
/* Copy the whole string if it fits, or just the suffix without the terminating NUL. */
|
||||
copy_suffix(store.ut_id, sizeof(store.ut_id), id);
|
||||
copy_suffix(lookup.ut_id, sizeof(lookup.ut_id), id);
|
||||
|
||||
found = getutxid(&lookup);
|
||||
if (!found)
|
||||
|
Loading…
x
Reference in New Issue
Block a user