diff options
author | Daan De Meyer <daan.j.demeyer@gmail.com> | 2023-03-15 15:51:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-15 15:51:47 +0100 |
commit | f5abe8f95721213edd76c16ed829cc3e37d7bdc6 (patch) | |
tree | b4af5bf9ca547f211ad9d841a37bd0a4d5c88430 /src/core/dbus-manager.c | |
parent | 39eb3ffaaa3cdaf47c39cee11c80500c2fee338f (diff) | |
parent | ea8282b6fc90a80f48ed66fead1e662ddb9050b9 (diff) | |
download | systemd-f5abe8f95721213edd76c16ed829cc3e37d7bdc6.tar.gz |
Merge pull request #26784 from DaanDeMeyer/chase-fix
Allow creating files and directories with chase_symlinks_open() and further improvements
Diffstat (limited to 'src/core/dbus-manager.c')
-rw-r--r-- | src/core/dbus-manager.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/dbus-manager.c b/src/core/dbus-manager.c index 6d2ed62f94..ca65bbf106 100644 --- a/src/core/dbus-manager.c +++ b/src/core/dbus-manager.c @@ -1768,7 +1768,7 @@ static int method_switch_root(sd_bus_message *message, void *userdata, sd_bus_er return sd_bus_error_setf(error, SD_BUS_ERROR_INVALID_ARGS, "Path to init binary '%s' not absolute.", init); - r = chase_symlinks_and_access(init, root, CHASE_PREFIX_ROOT, X_OK, NULL, NULL); + r = chase_symlinks_and_access(init, root, CHASE_PREFIX_ROOT, X_OK, NULL); if (r == -EACCES) return sd_bus_error_setf(error, SD_BUS_ERROR_INVALID_ARGS, "Init binary %s is not executable.", init); |