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
42663238
Commit
42663238
authored
24 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
Added option to keep temp files (for debugging).
parent
61cbd709
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/sbbs3/ftpsrvr.c
+11
-4
11 additions, 4 deletions
src/sbbs3/ftpsrvr.c
src/sbbs3/ftpsrvr.h
+1
-0
1 addition, 0 deletions
src/sbbs3/ftpsrvr.h
with
12 additions
and
4 deletions
src/sbbs3/ftpsrvr.c
+
11
−
4
View file @
42663238
...
...
@@ -1779,7 +1779,9 @@ static void ctrl_thread(void* arg)
globfree
(
&
g
);
fclose
(
fp
);
filexfer
(
&
data_addr
,
sock
,
pasv_sock
,
&
data_sock
,
fname
,
0L
,
&
transfer_inprogress
,
&
transfer_aborted
,
TRUE
,
TRUE
,
&
transfer_inprogress
,
&
transfer_aborted
,
startup
->
options
&
FTP_OPT_KEEP_TEMP_FILES
?
FALSE
:
TRUE
,
TRUE
,
&
lastactive
,
&
user
,
-
1
,
FALSE
,
FALSE
,
FALSE
,
NULL
);
continue
;
}
/* Local LIST/NLST */
...
...
@@ -2249,7 +2251,9 @@ static void ctrl_thread(void* arg)
fclose
(
fp
);
filexfer
(
&
data_addr
,
sock
,
pasv_sock
,
&
data_sock
,
fname
,
0L
,
&
transfer_inprogress
,
&
transfer_aborted
,
TRUE
,
TRUE
,
&
transfer_inprogress
,
&
transfer_aborted
,
startup
->
options
&
FTP_OPT_KEEP_TEMP_FILES
?
FALSE
:
TRUE
,
TRUE
,
&
lastactive
,
&
user
,
dir
,
FALSE
,
FALSE
,
FALSE
,
NULL
);
continue
;
}
...
...
@@ -2384,6 +2388,9 @@ static void ctrl_thread(void* arg)
success
=
TRUE
;
credits
=
FALSE
;
tmpfile
=
TRUE
;
if
(
startup
->
options
&
FTP_OPT_KEEP_TEMP_FILES
)
delfile
=
FALSE
;
else
delfile
=
TRUE
;
fprintf
(
fp
,
"%-*s File/Folder Descriptions
\r\n
"
,
INDEX_FNAME_LEN
,
startup
->
index_file_name
);
...
...
This diff is collapsed.
Click to expand it.
src/sbbs3/ftpsrvr.h
+
1
−
0
View file @
42663238
...
...
@@ -92,6 +92,7 @@ typedef struct {
#define FTP_OPT_ALLOW_QWK (1<<4)
#define FTP_OPT_NO_LOCAL_FSYS (1<<5)
#define FTP_OPT_DIR_FILES (1<<6)
/* Allow access to files in dir but not in database */
#define FTP_OPT_KEEP_TEMP_FILES (1<<7)
/* Don't delete temp files (for debugging) */
#define FTP_OPT_NO_HOST_LOOKUP (1<<11)
#define FTP_OPT_LOCAL_TIMEZONE (1<<30)
/* Don't force UCT/GMT */
#define FTP_OPT_MUTE (1<<31)
...
...
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