]> Zhao Yanbai Git Server - minix.git/commit
servers/pm: Fix EFAULT check for SETGROUPS 97/597/1
authorLionel Sambuc <lionel@minix3.org>
Tue, 28 May 2013 19:08:15 +0000 (19:08 +0000)
committerLionel Sambuc <lionel@minix3.org>
Tue, 28 May 2013 19:07:04 +0000 (21:07 +0200)
commitf0d23d912d8221639194e74a835525bc22ce37bd
treea6263ac4abe896ae1a3afa1575b2a2ede23310e8
parent61f6e2f5f0a2bc3b5a02542c4e004ccb00db8e02
servers/pm: Fix EFAULT check for SETGROUPS

The previous test would return EFAULT as soon as the group pointer
was NULL, while it is sensible when the count is also 0.

In that case, the SETGROUP syscall is expected to clear all the
group entries as the new set is empty.

Change-Id: I07b7e1d1f023a52e3035d53f7d9b42b660e039e8
servers/pm/getset.c