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/systemctl | |
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/systemctl')
-rw-r--r-- | src/systemctl/systemctl-switch-root.c | 4 |
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; |