diff --git a/src/fs/AllocatedPath.hxx b/src/fs/AllocatedPath.hxx
index cea1bc27e..4fb217547 100644
--- a/src/fs/AllocatedPath.hxx
+++ b/src/fs/AllocatedPath.hxx
@@ -70,6 +70,8 @@ public:
 	 */
 	AllocatedPath(AllocatedPath &&other):value(std::move(other.value)) {}
 
+	explicit AllocatedPath(Path other):value(other.c_str()) {}
+
 	~AllocatedPath();
 
 	/**