Update of patch #2883 (project freeciv):
Status: Done => In Progress
Open/Closed: Closed => Open
_______________________________________________________
Follow-up Comment #5:
Checked - the lua script calls the default save function. Thus, it would be
possible to add a directory to the path. The attached patch does limit the
possible chars for the filename if using the lua server.save function. Is
there a simpler way or even a function in the freeciv code which could be
reused?
> lua cmd if (server.save('test')) then log.normal('OK') else log.normal('not
saved') end
Game saved as test.sav.bz2
OK
> lua cmd if (server.save('/tmp/test')) then log.normal('OK') else
log.normal('not saved') end
not saved
>
(file #14243)
_______________________________________________________
Additional Item Attachment:
File name: 0034-restrict-possible-file-name-for-lua-server.save-func.patch
Size:2 KB
_______________________________________________________
Reply to this item at:
<http://gna.org/patch/?2883>
_______________________________________________
Nachricht geschickt von/durch Gna!
http://gna.org/
_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev