Commit 492db98e authored by pekka@mysql.com's avatar pekka@mysql.com

FileLogHandler.cpp, ndb_global.h:

  sco and others: use PATH_MAX always
parent c726ab10
...@@ -94,6 +94,14 @@ extern int strcasecmp(const char *s1, const char *s2); ...@@ -94,6 +94,14 @@ extern int strcasecmp(const char *s1, const char *s2);
extern int strncasecmp(const char *s1, const char *s2, size_t n); extern int strncasecmp(const char *s1, const char *s2, size_t n);
#endif #endif
#ifdef SCO
#ifndef PATH_MAX
#define PATH_MAX 1024
#endif
#endif /* SCO */
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
......
...@@ -14,15 +14,10 @@ ...@@ -14,15 +14,10 @@
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include <ndb_global.h>
#include <FileLogHandler.hpp> #include <FileLogHandler.hpp>
#include <File.hpp> #include <File.hpp>
// alt use PATH_MAX
#ifndef MAXPATHLEN
#define MAXPATHLEN 1024
#endif
// //
// PUBLIC // PUBLIC
// //
...@@ -151,7 +146,7 @@ FileLogHandler::createNewFile() ...@@ -151,7 +146,7 @@ FileLogHandler::createNewFile()
{ {
bool rc = true; bool rc = true;
int fileNo = 1; int fileNo = 1;
char newName[MAXPATHLEN]; char newName[PATH_MAX];
do do
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment