Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151009065
D29974.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
663 B
Referenced Files
None
Subscribers
None
D29974.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
@@ -1134,11 +1134,12 @@
char *path, *to;
int error, olddfd, newdfd, flag;
- if (args->flag & ~LINUX_AT_SYMLINK_FOLLOW)
+ if (args->flag & ~(LINUX_AT_SYMLINK_FOLLOW | LINUX_AT_EMPTY_PATH))
return (EINVAL);
flag = (args->flag & LINUX_AT_SYMLINK_FOLLOW) == 0 ? AT_SYMLINK_FOLLOW :
0;
+ flag |= (args->flag & LINUX_AT_EMPTY_PATH) == 0 ? AT_EMPTY_PATH : 0;
olddfd = (args->olddfd == LINUX_AT_FDCWD) ? AT_FDCWD : args->olddfd;
newdfd = (args->newdfd == LINUX_AT_FDCWD) ? AT_FDCWD : args->newdfd;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Apr 6, 10:49 AM (12 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30889521
Default Alt Text
D29974.diff (663 B)
Attached To
Mode
D29974: linux(4): make linkat(2) handle AT_EMPTY_PATH
Attached
Detach File
Event Timeline
Log In to Comment