Skip to content

Commit

Permalink
fanotify: do not always return 0 in fsnotify
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
jcdubois authored and eparis committed Jul 28, 2010
1 parent 8860f06 commit 98b5c10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/notify/fsnotify.c
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ int fsnotify(struct inode *to_tell, __u32 mask, void *data, int data_is,
if (event)
fsnotify_put_event(event);

return 0;
return ret;
}
EXPORT_SYMBOL_GPL(fsnotify);

Expand Down

0 comments on commit 98b5c10

Please sign in to comment.