diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-01-20 09:11:59 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-01-22 04:55:54 +0100 |
commit | 10195179bb663f000198543628b44ef8e51d71a7 (patch) | |
tree | bc367ca21a65f364a9c73a79b876c07c8bc28e2a /src/resolve/resolved-resolv-conf.c | |
parent | network: drop many unnecessary link_dirty() calls (diff) | |
download | systemd-10195179bb663f000198543628b44ef8e51d71a7.tar.xz systemd-10195179bb663f000198543628b44ef8e51d71a7.zip |
fs-util: rename conservative_rename() -> conservative_renameat()
And this introduces conservative_rename() which does not take dirfd.
Diffstat (limited to 'src/resolve/resolved-resolv-conf.c')
-rw-r--r-- | src/resolve/resolved-resolv-conf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resolve/resolved-resolv-conf.c b/src/resolve/resolved-resolv-conf.c index 029d5c93ed..2f06c9046f 100644 --- a/src/resolve/resolved-resolv-conf.c +++ b/src/resolve/resolved-resolv-conf.c @@ -360,7 +360,7 @@ int manager_write_resolv_conf(Manager *m) { goto fail; } - r = conservative_rename(AT_FDCWD, temp_path_stub, AT_FDCWD, PRIVATE_STUB_RESOLV_CONF); + r = conservative_rename(temp_path_stub, PRIVATE_STUB_RESOLV_CONF); if (r < 0) log_error_errno(r, "Failed to move new %s into place: %m", PRIVATE_STUB_RESOLV_CONF); @@ -370,7 +370,7 @@ int manager_write_resolv_conf(Manager *m) { log_error_errno(r, "Failed to symlink %s: %m", PRIVATE_STUB_RESOLV_CONF); } - r = conservative_rename(AT_FDCWD, temp_path_uplink, AT_FDCWD, PRIVATE_UPLINK_RESOLV_CONF); + r = conservative_rename(temp_path_uplink, PRIVATE_UPLINK_RESOLV_CONF); if (r < 0) log_error_errno(r, "Failed to move new %s into place: %m", PRIVATE_UPLINK_RESOLV_CONF); |