Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
492db98e
Commit
492db98e
authored
Aug 26, 2004
by
pekka@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FileLogHandler.cpp, ndb_global.h:
sco and others: use PATH_MAX always
parent
c726ab10
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
7 deletions
+10
-7
ndb/include/ndb_global.h
ndb/include/ndb_global.h
+8
-0
ndb/src/common/logger/FileLogHandler.cpp
ndb/src/common/logger/FileLogHandler.cpp
+2
-7
No files found.
ndb/include/ndb_global.h
View file @
492db98e
...
@@ -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
...
...
ndb/src/common/logger/FileLogHandler.cpp
View file @
492db98e
...
@@ -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
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment