Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F159004807
D29108.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
844 B
Referenced Files
None
Subscribers
None
D29108.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
@@ -1740,12 +1740,17 @@
char *path;
int error, dfd, flag;
- if (args->flag & ~LINUX_AT_SYMLINK_NOFOLLOW)
+ if (args->flag & ~(LINUX_AT_SYMLINK_NOFOLLOW | LINUX_AT_EMPTY_PATH)) {
+ linux_msg(td, "fchownat unsupported flag 0x%x", args->flag);
return (EINVAL);
+ }
- dfd = (args->dfd == LINUX_AT_FDCWD) ? AT_FDCWD : args->dfd;
flag = (args->flag & LINUX_AT_SYMLINK_NOFOLLOW) == 0 ? 0 :
AT_SYMLINK_NOFOLLOW;
+ flag |= (args->flag & LINUX_AT_EMPTY_PATH) == 0 ? 0 :
+ AT_EMPTY_PATH;
+
+ dfd = (args->dfd == LINUX_AT_FDCWD) ? AT_FDCWD : args->dfd;
if (!LUSECONVPATH(td)) {
return (kern_fchownat(td, dfd, args->filename, UIO_USERSPACE,
args->uid, args->gid, flag));
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Jun 9, 10:15 PM (7 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33820770
Default Alt Text
D29108.diff (844 B)
Attached To
Mode
D29108: linux: support AT_EMPTY_PATH flag in fchownat(2)
Attached
Detach File
Event Timeline
Log In to Comment