Skip to content
GitLab
Menu
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
d8b48642
Commit
d8b48642
authored
Aug 05, 2003
by
Per Cederqvist
Browse files
(shutdown_kom): Get the host name from the isc_scb, now that the
information is no longer stored in the connection.
parent
f8c95599
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/server/admin.c
View file @
d8b48642
/*
* $Id: admin.c,v 0.5
6
2003/0
7/15 22:48:29
ceder Exp $
* $Id: admin.c,v 0.5
7
2003/0
8/05 09:51:38
ceder Exp $
* Copyright (C) 1991, 1993-1999, 2001-2002 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
...
...
@@ -38,6 +38,8 @@
#include "timewrap.h"
#include <signal.h>
#include "oop.h"
#include "misc-types.h"
#include "s-string.h"
#include "kom-types.h"
...
...
@@ -57,6 +59,7 @@
#include "aux-items.h"
#include "unused.h"
#include "sigflags.h"
#include "isc-interface.h"
/* All of the fields in this structure except the version number
is set from the configuration file at startup (see ramkomd.c).
...
...
@@ -349,7 +352,7 @@ shutdown_kom (int UNUSED(exit_val))
name
=
s_crea_c_str
(
active_connection
->
username
);
user
=
s_crea_c_str
(
active_connection
->
ident_user
);
host
=
s_crea_c_str
(
active_connection
->
hostnam
e
);
host
=
s_crea_c_str
(
active_connection
->
isc_session
->
remot
e
);
kom_log
(
"shutdown initiated by person %d (%s) via %s@%s.
\n
"
,
ACTPERS
,
name
,
user
,
host
);
string_free
(
host
);
...
...
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