Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Per Cederqvist
lyskom-server-ceder-1616-generations-topgit
Commits
8fde5bb8
Commit
8fde5bb8
authored
Feb 27, 1994
by
Per Cederqvist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(login_old, login): Log successful login attempts together with
username and host.
parent
e6a7a475
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
4 deletions
+19
-4
src/server/session.c
src/server/session.c
+19
-4
No files found.
src/server/session.c
View file @
8fde5bb8
/*
* $Id: session.c,v 0.2
1
1994/02/27 1
5:24
:5
4
ceder Exp $
* $Id: session.c,v 0.2
2
1994/02/27 1
7:05
:5
2
ceder Exp $
* Copyright (C) 1991 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
...
...
@@ -28,7 +28,7 @@
* Session control and miscellaneous.
*/
static
char
*
rcsid
=
"$Id: session.c,v 0.2
1
1994/02/27 1
5:24
:5
4
ceder Exp $"
;
static
char
*
rcsid
=
"$Id: session.c,v 0.2
2
1994/02/27 1
7:05
:5
2
ceder Exp $"
;
#include "rcs.h"
USE
(
rcsid
);
...
...
@@ -59,6 +59,7 @@ USE(rcsid);
#include "server/smalloc.h"
#include "param.h"
#include "kom-memory.h"
#include "string-malloc.h"
/*
* Create an oldstyle username, user%host.domain@host.domain.
...
...
@@ -174,9 +175,16 @@ login_old (Pers_no pers_no,
restart_kom
(
"prot_a_parse_packet: s_strcat II
\n
"
);
mark_person_as_changed
(
pers_no
);
if
(
param
.
log_login
==
TRUE
)
{
char
*
id
=
s_crea_c_str
(
pers_p
->
username
);
log
(
"Login %d %s"
,
ACTPERS
,
id
);
string_free
(
id
);
}
async_login
(
ACTPERS
,
active_connection
->
session_no
);
return
OK
;
}
...
...
@@ -254,6 +262,13 @@ login (Pers_no pers_no,
mark_person_as_changed
(
pers_no
);
if
(
param
.
log_login
==
TRUE
)
{
char
*
id
=
s_crea_c_str
(
pers_p
->
username
);
log
(
"Login %d %s"
,
ACTPERS
,
id
);
string_free
(
id
);
}
if
(
!
active_connection
->
invisible
)
async_login
(
ACTPERS
,
active_connection
->
session_no
);
...
...
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