summaryrefslogtreecommitdiff
path: root/src/systemctl
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2023-03-15 15:51:47 +0100
committerGitHub <noreply@github.com>2023-03-15 15:51:47 +0100
commitf5abe8f95721213edd76c16ed829cc3e37d7bdc6 (patch)
treeb4af5bf9ca547f211ad9d841a37bd0a4d5c88430 /src/systemctl
parent39eb3ffaaa3cdaf47c39cee11c80500c2fee338f (diff)
parentea8282b6fc90a80f48ed66fead1e662ddb9050b9 (diff)
downloadsystemd-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/systemctl')
-rw-r--r--src/systemctl/systemctl-switch-root.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/systemctl/systemctl-switch-root.c b/src/systemctl/systemctl-switch-root.c
index 7fa8b26f59..5c71d3d97f 100644
--- a/src/systemctl/systemctl-switch-root.c
+++ b/src/systemctl/systemctl-switch-root.c
@@ -21,11 +21,11 @@ static int same_file_in_root(
struct stat sta, stb;
int r;
- r = chase_symlinks_and_stat(a, root, CHASE_PREFIX_ROOT, NULL, &sta, NULL);
+ r = chase_symlinks_and_stat(a, root, CHASE_PREFIX_ROOT, NULL, &sta);
if (r < 0)
return r;
- r = chase_symlinks_and_stat(b, root, CHASE_PREFIX_ROOT, NULL, &stb, NULL);
+ r = chase_symlinks_and_stat(b, root, CHASE_PREFIX_ROOT, NULL, &stb);
if (r < 0)
return r;