Bug#898483: Acknowledgement (failed creating configuration directroy: unsupported)
Lumin
cdluminate at gmail.com
Sat May 12 14:33:14 BST 2018
control: tag -1 +patch
I think the problem lays in main.cpp :
81 // Set configuration directory
82 //sprintf(writedir, "%s.%s", userdir, application);
83 sprintf(writedir, "%s%s", userdir, application);
84 if(!PHYSFS_setWriteDir(writedir)) {
85 // try to create the directory
86 char* mkdir = new char[strlen(application) + 2];
87 sprintf(mkdir, "%s", application);
88 if(!PHYSFS_setWriteDir(userdir) || !PHYSFS_mkdir(mkdir)) {
89 std::ostringstream msg;
90 msg << "Failed creating configuration directory '" <<
91 writedir << "': " << PHYSFS_getLastError();
Looks like that the author forgot to concat the "userdir" and "mkdir"
before really creating it. If that's where the root of problem lies,
a possible fix could be:
char* mkdir = new char[strlen(userdir) + strlen(application) + 2];
sprintf(mkdir, "%s%s", userdir, applicatoin);
if(!PHYSFS_setWriteDir(userdir) || !PHYSFS_mkdir(mkdir)) {
Not verified. Hope it helps.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-games-devel/attachments/20180512/054315d1/attachment.sig>
More information about the Pkg-games-devel
mailing list