
6 Apr
2011
6 Apr
'11
5:25 p.m.
I use write_xml() function and boost-1.46.0-4 on arch linux.
void create() { ... out_file.save("/machines/"+name); <...>
Write_xml() create the /machines/+name But it must create a path /home/iwan/machines/+name
Why? It is bug?
/machines/name is absolute path, isn't it? What if you call fopen("/machines/name", "w")? I guess it will create the file in /machines as well.