
6 Apr
2011
6 Apr
'11
2:43 p.m.
Hi, I use write_xml() function and boost-1.46.0-4 on arch linux. void create() { ... out_file.save("/machines/"+name); .... void serializer::save (const std::string &filename) { boost::property_tree::xml_parser::xml_writer_settings<char> gramma(' ',8); write_xml(filename, pt, std::locale(), gramma); } This function don't chroot. readlink -f /proc/5682/cwd /home/iwan Write_xml() create the /machines/+name But it must create a path /home/iwan/machines/+name Why? It is bug? I am sorry for my bad english.