fanotify: do not always return 0 in fsnotify

It seems to me you are always returning 0 in fsnotify, when you should return
the error (EPERM) returned by fanotify.

Signed-off-by: Jean-Christophe DUBOIS <[email protected]>
Signed-off-by: Eric Paris <[email protected]>
This commit is contained in:
Jean-Christophe Dubois 2010-03-23 08:08:09 +01:00 • committed by Eric Paris
commit 98b5c10d32

View file

@ -269,7 +269,7 @@ out:
if (event)
fsnotify_put_event(event);
return 0;
return ret;
}
EXPORT_SYMBOL_GPL(fsnotify);