Good catch.
The set_user() for that particular case should just be dropped in fact,
turning that case into an empty case too. I mis-read the original setuid()
code.
> } else if (uid == current->suid) {
> if (set_user(uid) < 0)
> return -EAGAIN;
> } else
So just turn the above if() into an empty statement (and obviously it can
then be trivially cleaned up ;)
Linus
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/