handle: return -EOPNOTSUPP instead of -EPERM if an operation is not supported
authorDjalal Harouni <tixxdz@opendz.org>
Tue, 5 Aug 2014 01:09:09 +0000 (02:09 +0100)
committerKay Sievers <kay@vrfy.org>
Tue, 5 Aug 2014 07:23:37 +0000 (09:23 +0200)
commita4e81d806e1e80004bea313ba015bd524c2a121b
treef1c79f9d770ff1c718bf2fbf78908fc941b83271
parent95ed4886abe472069736088f2daa34467e166073
handle: return -EOPNOTSUPP instead of -EPERM if an operation is not supported

If userspace calls in with the wrong connection type, just return
-EOPNOTSUPP instead of -EPERM.

This will not confuse unprivileged and privileged processes, and permits
to identify legitimate -EPERM errors.

This just converts errors introduced in commit 7015a1e6746

Signed-off-by: Djalal Harouni <tixxdz@opendz.org>
handle.c