projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e743e7
)
core/manager: open our parent dir with O_PATH
author
Mike Yuan
<me@yhndnzj.com>
Thu, 23 Nov 2023 12:44:32 +0000
(20:44 +0800)
committer
Mike Yuan
<me@yhndnzj.com>
Thu, 23 Nov 2023 12:44:32 +0000
(20:44 +0800)
src/core/manager.c
patch
|
blob
|
history
diff --git
a/src/core/manager.c
b/src/core/manager.c
index
dadfc51
..
37e4f70
100644
(file)
--- a/
src/core/manager.c
+++ b/
src/core/manager.c
@@
-1030,7
+1030,7
@@
int manager_new(RuntimeScope runtime_scope, ManagerTestRunFlags test_run_flags,
if (r < 0)
return r;
- self_dir_fd = open_parent(self_exe, O_CLOEXEC|O_DIRECTORY, 0);
+ self_dir_fd = open_parent(self_exe, O_CLOEXEC|O_
PATH|O_
DIRECTORY, 0);
if (self_dir_fd < 0)
return self_dir_fd;