Merge pull request #8554 from poettering/chase-trail-slash

fs-util: add new CHASE_TRAIL_SLASH flag for chase_symlinks()
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2018-03-26 18:00:08 +02:00
committed by GitHub
11 changed files with 21 additions and 21 deletions
+1 -1
View File
@@ -907,7 +907,7 @@ int bus_machine_method_bind_mount(sd_bus_message *message, void *userdata, sd_bu
if (laccess(p, F_OK) < 0)
return sd_bus_error_setf(error, SD_BUS_ERROR_NOT_SUPPORTED, "Container does not allow propagation of mount points.");
r = chase_symlinks(src, NULL, 0, &chased_src);
r = chase_symlinks(src, NULL, CHASE_TRAIL_SLASH, &chased_src);
if (r < 0)
return sd_bus_error_set_errnof(error, r, "Failed to resolve source path: %m");