git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
765a122
)
Revert "HACK vfswrap_openat always openat2"
author
Stefan Metzmacher
<metze@samba.org>
Wed, 10 Aug 2022 00:14:03 +0000
(
00:14
+0000)
committer
Stefan Metzmacher
<metze@samba.org>
Tue, 15 Nov 2022 08:32:39 +0000
(09:32 +0100)
This reverts commit
0d60a34b1fad080a6061921eebbbe8de614af395
.
source3/modules/vfs_default.c
patch
|
blob
|
history
diff --git
a/source3/modules/vfs_default.c
b/source3/modules/vfs_default.c
index 760f97a5cc20ad666b3a6319117b0810814ce863..000c23208f560ee38fbccf7fa61a65a3a2ebf62d 100644
(file)
--- a/
source3/modules/vfs_default.c
+++ b/
source3/modules/vfs_default.c
@@
-787,21
+787,12
@@
static int vfswrap_openat(vfs_handle_struct *handle,
become_root();
became_root = true;
}
-if (1) {
- struct open_how linux_how = {
- .flags = flags,
- .mode = mode,
- };
- result = openat2(fsp_get_pathref_fd(dirfsp),
- smb_fname->base_name,
- &linux_how,
- sizeof(linux_how));
-} else {
+
result = openat(fsp_get_pathref_fd(dirfsp),
smb_fname->base_name,
flags,
mode);
-}
+
if (became_root) {
unbecome_root();
}