Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
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
Main
Synchronet
Commits
689860d6
Commit
689860d6
authored
4 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
Log the user name or IP address in more places.
parent
7b05f3e1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/sbbs3/ftpsrvr.c
+5
-8
5 additions, 8 deletions
src/sbbs3/ftpsrvr.c
with
5 additions
and
8 deletions
src/sbbs3/ftpsrvr.c
+
5
−
8
View file @
689860d6
...
...
@@ -3135,10 +3135,7 @@ static void ctrl_thread(void* arg)
#endif
if
(
rd
<
1
)
{
if
(
transfer_inprogress
==
TRUE
)
{
if
(
user
.
number
)
lprintf
(
LOG_WARNING
,
"%04d <%s> !Aborting transfer due to CTRL socket receive error"
,
sock
,
user
.
alias
);
else
lprintf
(
LOG_WARNING
,
"%04d !Aborting transfer due to CTRL socket receive error"
,
sock
);
lprintf
(
LOG_WARNING
,
"%04d <%s> !Aborting transfer due to CTRL socket receive error"
,
sock
,
user
.
number
?
user
.
alias
:
host_ip
);
transfer_aborted
=
TRUE
;
}
break
;
...
...
@@ -3148,17 +3145,17 @@ static void ctrl_thread(void* arg)
cmd
=
buf
;
while
(((
BYTE
)
*
cmd
)
==
TELNET_IAC
)
{
cmd
++
;
lprintf
(
LOG_DEBUG
,
"%04d RX%s: Telnet cmd: %s"
,
sock
,
sess
==
-
1
?
""
:
"S"
,
telnet_cmd_desc
(
*
cmd
));
lprintf
(
LOG_DEBUG
,
"%04d
<%s>
RX%s: Telnet cmd: %s"
,
sock
,
user
.
number
?
user
.
alias
:
host_ip
,
sess
==
-
1
?
""
:
"S"
,
telnet_cmd_desc
(
*
cmd
));
cmd
++
;
}
while
(
*
cmd
&&
*
cmd
<
' '
)
{
lprintf
(
LOG_DEBUG
,
"%04d RX%s: %d (0x%02X)"
,
sock
,
sess
==
-
1
?
""
:
"S"
,
(
BYTE
)
*
cmd
,(
BYTE
)
*
cmd
);
lprintf
(
LOG_DEBUG
,
"%04d
<%s>
RX%s: %d (0x%02X)"
,
sock
,
user
.
number
?
user
.
alias
:
host_ip
,
sess
==
-
1
?
""
:
"S"
,
(
BYTE
)
*
cmd
,(
BYTE
)
*
cmd
);
cmd
++
;
}
if
(
!
(
*
cmd
))
continue
;
if
(
startup
->
options
&
FTP_OPT_DEBUG_RX
)
lprintf
(
LOG_DEBUG
,
"%04d RX%s: %s"
,
sock
,
sess
==
-
1
?
""
:
"S"
,
cmd
);
lprintf
(
LOG_DEBUG
,
"%04d
<%s>
RX%s: %s"
,
sock
,
user
.
number
?
user
.
alias
:
host_ip
,
sess
==
-
1
?
""
:
"S"
,
cmd
);
if
(
!
stricmp
(
cmd
,
"NOOP"
))
{
sockprintf
(
sock
,
sess
,
"200 NOOP command successful."
);
continue
;
...
...
@@ -3335,7 +3332,7 @@ static void ctrl_thread(void* arg)
break
;
continue
;
}
lprintf
(
LOG_INFO
,
"%04d %s:
<
%s
>
"
,
sock
,
user
.
alias
,
password
);
lprintf
(
LOG_INFO
,
"%04d
<
%s
> identity
: %s"
,
sock
,
user
.
alias
,
password
);
putuserrec
(
&
scfg
,
user
.
number
,
U_NETMAIL
,
LEN_NETMAIL
,
password
);
}
else
if
(
user
.
level
>=
SYSOP_LEVEL
&&
!
stricmp
(
password
,
sys_pass
))
{
...
...
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