#include <pakfire/arch.h>
#include <pakfire/logging.h>
#include <pakfire/pakfire.h>
+#include <pakfire/path.h>
#include <pakfire/mount.h>
#include <pakfire/string.h>
#include <pakfire/util.h>
{ NULL },
};
-int pakfire_mount_change_propagation(struct pakfire* pakfire, int propagation, const char* path) {
- DEBUG(pakfire, "Changing mount propagation on %s\n", path);
+int pakfire_mount_change_propagation(struct pakfire_ctx* ctx, const char* path, int propagation) {
+ CTX_DEBUG(ctx, "Changing mount propagation on %s\n", path);
int r = mount(NULL, path, NULL, propagation|MS_REC, NULL);
if (r)
- ERROR(pakfire, "Failed to change mount propagation on %s: %m\n", path);
+ CTX_ERROR(ctx, "Failed to change mount propagation on %s: %m\n", path);
return r;
}
for (const struct pakfire_mountpoint* mp = mountpoints; mp->source; mp++) {
// Figure out where to mount
- r = pakfire_path_join(target, root, mp->target);
+ r = pakfire_path_append(target, root, mp->target);
if (r)
return r;