diff options
author | Mike Yuan <me@yhndnzj.com> | 2024-07-30 17:45:19 +0200 |
---|---|---|
committer | Mike Yuan <me@yhndnzj.com> | 2024-08-02 16:36:07 +0200 |
commit | e563c4213e1705c16e682424a64f6445419321f6 (patch) | |
tree | 99f6a3bd7c03b7825aff331c8fe1c0572754f368 | |
parent | cgroup-setup: use fchownat() + AT_EMPTY_PATH where appropriate (diff) | |
download | systemd-e563c4213e1705c16e682424a64f6445419321f6.tar.xz systemd-e563c4213e1705c16e682424a64f6445419321f6.zip |
cgroup-setup: drop unneeded O_RDONLY when O_DIRECTORY
-rw-r--r-- | src/shared/cgroup-setup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/cgroup-setup.c b/src/shared/cgroup-setup.c index b1cb47900c..6292777369 100644 --- a/src/shared/cgroup-setup.c +++ b/src/shared/cgroup-setup.c @@ -577,7 +577,7 @@ int cg_set_access_recursive( if (r < 0) return r; - fd = open(fs, O_DIRECTORY|O_CLOEXEC|O_RDONLY); + fd = open(fs, O_DIRECTORY|O_CLOEXEC); if (fd < 0) return -errno; |