1
0
Fork 0

increase max length of storage-directory file name

This commit is contained in:
bagyenda 2005-12-12 04:46:46 +00:00
parent bbd268ecce
commit fa4bac1491
3 changed files with 4 additions and 2 deletions

View File

@ -209,7 +209,7 @@ found=""
AC_MSG_RESULT($loc)
AC_CHECK_FILE("$loc/include/kannel/gw-config.h",
[CFLAGS="$CFLAGS -I$loc/include/kannel";
LIBS="$LIBS -L$loc/lib/kannel -lwap -lgwlib";
LDFLAGS="$LDFLAGS -L$loc/lib/kannel -lwap -lgwlib";
found=1
])
fi

View File

@ -17,7 +17,7 @@
#include "mms_msg.h"
#include "mms_util.h"
#define QFNAMEMAX 32
#define QFNAMEMAX 128
typedef struct MmsEnvelopeTo {
Octstr *rcpt; /* Recipient address. */

View File

@ -105,6 +105,8 @@ MmscSettings *mms_load_mmsc_settings(Cfg *cfg, List **proxyrelays)
m->sendmail = _mms_cfg_getx(grp, octstr_imm("send-mail-prog"));
qdir = _mms_cfg_getx(grp, octstr_imm("storage-directory"));
if (qdir && octstr_len(qdir) >= QFNAMEMAX)
warning(0, "storage-directory name too long. Max length is %d", QFNAMEMAX);
if (mkdir(octstr_get_cstr(qdir),
S_IRWXU|S_IRWXG) < 0 &&