Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gcc-cobol
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
COBOLworx
gcc-cobol
Commits
f6a65b92
Commit
f6a65b92
authored
25 years ago
by
Rainer Orth
Committed by
Bruce Korb
25 years ago
Browse files
Options
Downloads
Patches
Plain Diff
don't \\-escape the cd command + format fix
From-SVN: r26813
parent
02c325c4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gcc/fixinc/server.c
+11
-4
11 additions, 4 deletions
gcc/fixinc/server.c
with
11 additions
and
4 deletions
gcc/fixinc/server.c
+
11
−
4
View file @
f6a65b92
...
@@ -86,9 +86,9 @@
...
@@ -86,9 +86,9 @@
#define NUL '\0'
#define NUL '\0'
#endif
#endif
STATIC
bool
read_pipe_timeout
;
STATIC
volatile
bool
read_pipe_timeout
;
STATIC
t_pchar
def_args
[]
=
static
t_pchar
def_args
[]
=
{
(
char
*
)
NULL
,
(
char
*
)
NULL
};
{
(
char
*
)
NULL
,
(
char
*
)
NULL
};
STATIC
t_pf_pair
server_pair
=
STATIC
t_pf_pair
server_pair
=
{
(
FILE
*
)
NULL
,
(
FILE
*
)
NULL
};
{
(
FILE
*
)
NULL
,
(
FILE
*
)
NULL
};
...
@@ -149,7 +149,8 @@ load_data (fp)
...
@@ -149,7 +149,8 @@ load_data (fp)
p
=
realloc
((
void
*
)
pz_text
,
text_size
);
p
=
realloc
((
void
*
)
pz_text
,
text_size
);
if
(
p
==
(
void
*
)
NULL
)
if
(
p
==
(
void
*
)
NULL
)
{
{
fprintf
(
stderr
,
"Failed to get 0x%08X bytes
\n
"
,
text_size
);
fprintf
(
stderr
,
"Failed to get 0x%08lX bytes
\n
"
,
(
long
)
text_size
);
free
((
void
*
)
pz_text
);
free
((
void
*
)
pz_text
);
return
(
char
*
)
NULL
;
return
(
char
*
)
NULL
;
}
}
...
@@ -201,6 +202,12 @@ static void
...
@@ -201,6 +202,12 @@ static void
sig_handler
(
signo
)
sig_handler
(
signo
)
int
signo
;
int
signo
;
{
{
#ifdef DEBUG
/* FIXME: this is illegal to do in a signal handler. */
fprintf
(
stderr
,
"fixincl ERROR: sig_handler: killed pid %ld due to %s
\n
"
,
(
long
)
server_id
,
signo
==
SIGPIPE
?
"SIGPIPE"
:
"SIGALRM"
);
#endif
close_server
();
close_server
();
read_pipe_timeout
=
BOOL_TRUE
;
read_pipe_timeout
=
BOOL_TRUE
;
}
}
...
@@ -273,7 +280,7 @@ run_shell (pz_cmd)
...
@@ -273,7 +280,7 @@ run_shell (pz_cmd)
/* Make sure the process will pay attention to us, send the
/* Make sure the process will pay attention to us, send the
supplied command, and then have it output a special marker that
supplied command, and then have it output a special marker that
we can find. */
we can find. */
fprintf
(
server_pair
.
pf_write
,
"
\\
cd %s
\n
%s
\n\n
echo
\n
echo %s
\n
"
,
fprintf
(
server_pair
.
pf_write
,
"cd %s
\n
%s
\n\n
echo
\n
echo %s
\n
"
,
p_cur_dir
,
pz_cmd
,
z_done
);
p_cur_dir
,
pz_cmd
,
z_done
);
fflush
(
server_pair
.
pf_write
);
fflush
(
server_pair
.
pf_write
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment