Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F176488593
D57386.id179069.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1015 B
Referenced Files
None
Subscribers
None
D57386.id179069.diff
View Options
diff --git a/sys/compat/linux/linux_file.c b/sys/compat/linux/linux_file.c
--- a/sys/compat/linux/linux_file.c
+++ b/sys/compat/linux/linux_file.c
@@ -2034,23 +2034,19 @@
_Static_assert(LINUX_IN_EXCL_UNLINK == IN_EXCL_UNLINK,
"IN_EXCL_UNLINK mismatch");
-static int
-linux_inotify_watch_flags(int l_flags)
-{
- if ((l_flags & ~(LINUX_IN_ALL_EVENTS | LINUX_IN_ALL_FLAGS)) != 0) {
- linux_msg(NULL, "inotify_add_watch unsupported flags 0x%x",
- l_flags);
- }
-
- return (l_flags);
-}
-
int
linux_inotify_add_watch(struct thread *td,
struct linux_inotify_add_watch_args *args)
{
- return (kern_inotify_add_watch(args->fd, AT_FDCWD, args->pathname,
- linux_inotify_watch_flags(args->mask), td));
+ uint32_t mask;
+
+ mask = args->mask;
+ if ((mask & ~(LINUX_IN_ALL_EVENTS | LINUX_IN_ALL_FLAGS)) != 0) {
+ linux_msg(td, "inotify_add_watch unsupported flags 0x%x", mask);
+ return (EINVAL);
+ }
+ return (kern_inotify_add_watch(args->fd, AT_FDCWD, args->pathname, mask,
+ td));
}
int
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Oct 20, 6:35 AM (5 h, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41096577
Default Alt Text
D57386.id179069.diff (1015 B)
Attached To
Mode
D57386: linux: Return an error for invalid inotify masks
Attached
Detach File
Event Timeline
Log In to Comment