]> granicus.if.org Git - strace/commit
syscall.c: always update tcp->currpers in update_personality
authorEugene Syromyatnikov <evgsyr@gmail.com>
Mon, 15 Jan 2018 17:55:48 +0000 (18:55 +0100)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 16 Jan 2018 22:54:38 +0000 (22:54 +0000)
commit7d9a21fcba215b33bfc979bf64c9a039076c1027
tree5b4f1bbf408390a6042cb562ecb351f0d4a0b8e2
parent396961b1b40efc49dab7c5dcc01f14abf3893cba
syscall.c: always update tcp->currpers in update_personality

Sometimes (for example, switching from a process with one personality
to a process that previously had different personality but returning
from execve to that same personality into) it is possible that
current_personality is not changed, but tcp->currpers is different.
So, let's not return from update_personality and always update
tcp->currpers if it differs from the target personality.

* syscall.c (update_personality): Do not exit early if personality ==
current_personality.
syscall.c