increase max length of storage-directory file name
parent
bbd268ecce
commit
fa4bac1491
|
@ -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
|
||||
|
|
|
@ -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. */
|
||||
|
|
|
@ -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 &&
|
||||
|
|
Loading…
Reference in New Issue