Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Per Cederqvist
lyskom-server-ceder-1616-generations-topgit
Commits
9ddff8ff
Commit
9ddff8ff
authored
Apr 18, 1999
by
Per Cederqvist
Browse files
(savecore): Use param.core_dir and param.savecore_path instead of
hardcoding the values.
parent
f7ece0a6
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/server/updateLysKOM.c
View file @
9ddff8ff
/*
* $Id: updateLysKOM.c,v 1.1
0
1999/04/1
7 22:02
:1
8
ceder Exp $
* $Id: updateLysKOM.c,v 1.1
1
1999/04/1
8 13:11
:1
1
ceder Exp $
* Copyright (C) 1994, 1995 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
...
...
@@ -150,12 +150,18 @@ static void
savecore
(
void
)
{
struct
stat
statbuf
;
char
*
corefile
;
if
(
stat
(
DEFAULT_PREFIX
"cores/core"
,
&
statbuf
)
==
0
&&
stat
(
DEFAULT_PREFIX
"bin/savecore"
,
&
statbuf
)
==
0
)
corefile
=
smalloc
(
strlen
(
param
.
core_dir
)
+
1
+
4
+
1
);
strcpy
(
corefile
,
param
.
core_dir
);
strcat
(
corefile
,
"/core"
);
if
(
stat
(
corefile
,
&
statbuf
)
==
0
&&
stat
(
param
.
savecore_path
,
&
statbuf
)
==
0
)
{
system
(
DEFAULT_PREFIX
"bin/
savecore
"
);
system
(
param
.
savecore
_path
);
}
sfree
(
corefile
);
}
int
...
...
@@ -199,7 +205,7 @@ main (int argc,
case
'V'
:
case
'v'
:
fprintf
(
stderr
,
"updateLysKOM %d $Revision: 1.1
0
$
\n
"
,
fprintf
(
stderr
,
"updateLysKOM %d $Revision: 1.1
1
$
\n
"
,
#include
"version.incl"
);
exit
(
0
);
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment