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
3b313f14
Commit
3b313f14
authored
Jun 01, 2004
by
greg@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix applied to allow building of 4.0.20 for NetWare
parent
e13c5d04
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
client/mysqltest.c
client/mysqltest.c
+6
-5
No files found.
client/mysqltest.c
View file @
3b313f14
...
...
@@ -185,7 +185,7 @@ typedef struct
*/
static
char
*
subst_env_var
(
const
char
*
cmd
);
static
int
my_popen
(
const
char
*
cmd
,
const
char
*
mode
);
static
FILE
*
my_popen
(
const
char
*
cmd
,
const
char
*
mode
);
#define popen(A,B) my_popen((A),(B))
#endif
/* __NETWARE__ */
...
...
@@ -3509,6 +3509,7 @@ static void get_replace_column(struct st_query *q)
static
char
*
subst_env_var
(
const
char
*
str
)
{
char
*
result
;
char
*
pos
;
result
=
pos
=
my_malloc
(
MAX_QUERY
,
MYF
(
MY_FAE
));
while
(
*
str
)
...
...
@@ -3528,7 +3529,7 @@ static char *subst_env_var(const char *str)
*
str
&&
!
isspace
(
*
str
)
&&
*
str
!=
'\\'
&&
*
str
!=
'/'
&&
*
str
!=
'$'
;
str
++
)
*
env_pos
++
*
str
;
*
env_pos
++
=
*
str
;
*
env_pos
=
0
;
if
(
!
(
subst
=
getenv
(
env_var
)))
...
...
@@ -3571,11 +3572,11 @@ static char *subst_env_var(const char *str)
#undef popen
/* Remove wrapper */
int
my_popen
(
const
char
*
cmd
,
const
char
*
mode
__attribute__
((
unused
))
t
)
FILE
*
my_popen
(
const
char
*
cmd
,
const
char
*
mode
__attribute__
((
unused
))
)
{
char
*
subst_cmd
;
int
res_file
;
FILE
*
res_file
;
subst_cmd
=
subst_env_var
(
cmd
);
res_file
=
popen
(
subst_cmd
,
"r0"
);
my_free
(
subst_cmd
,
MYF
(
0
));
...
...
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