diff options
-rw-r--r-- | utils/login.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/login.c b/utils/login.c index 01f05bc4..7ff1aa60 100644 --- a/utils/login.c +++ b/utils/login.c @@ -276,7 +276,7 @@ check_owned (process_t proc_server, pid_t pid, int *owned) if (! err) { - *owned = pi->state & PI_NOTOWNED; + *owned = !(pi->state & PI_NOTOWNED); if (pi != &_pi) vm_deallocate (mach_task_self (), (vm_address_t)pi, pi_size); } |