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
8c9b104c
Commit
8c9b104c
authored
22 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
Added -L option to specify library name to limit Auto-ADD directory list.
parent
c43be328
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/addfiles.c
+16
-1
16 additions, 1 deletion
src/sbbs3/addfiles.c
with
16 additions
and
1 deletion
src/sbbs3/addfiles.c
+
16
−
1
View file @
8c9b104c
...
...
@@ -47,6 +47,8 @@ int cur_altpath=0;
long
files
=
0
,
removed
=
0
,
mode
=
0
;
char
lib
[
LEN_GSNAME
+
1
];
#define DEL_LIST (1L<<0)
#define NO_EXTEND (1L<<1)
#define FILE_DATE (1L<<2)
...
...
@@ -601,7 +603,7 @@ void synclist(char *inpath, int dirnum)
m
=
l
;
for
(
i
=
0
;
i
<
12
&&
l
<
length
;
i
++
)
if
(
i
==
8
)
str
[
i
]
=
'.
'
;
str
[
i
]
=
ixbbuf
[
m
]
>
' '
?
'.'
:
'
'
;
else
str
[
i
]
=
ixbbuf
[
m
++
];
/* Turns FILENAMEEXT into FILENAME.EXT */
str
[
i
]
=
0
;
...
...
@@ -663,9 +665,11 @@ char *usage="\nusage: addfiles code [.alt_path] [-opts] [\"*user\"] +list "
"
\n
z check for and import FILE_ID.DIZ and DESC.SDI"
"
\n
k keep original short description (not DIZ)"
"
\n
s search directory for files (no file list)"
"
\n
l specify library (short name) to Auto-ADD"
"
\n
"
"
\n
Auto-ADD: use * in place of code for Auto-ADD of FILES.BBS"
"
\n
use *filename to Auto-ADD a different filename"
"
\n
use -l
\"
libname
\"
to only Auto-ADD files to a specific library"
"
\n
"
;
...
...
@@ -775,6 +779,15 @@ int main(int argc, char **argv)
case
'I'
:
mode
|=
UL_STATS
;
break
;
case
'L'
:
j
++
;
if
(
argv
[
j
]
==
NULL
)
{
printf
(
usage
);
return
(
-
1
);
}
SAFECOPY
(
lib
,
argv
[
j
]);
i
=
strlen
(
argv
[
j
])
-
1
;
break
;
case
'Z'
:
mode
|=
FILE_ID
;
break
;
...
...
@@ -926,6 +939,8 @@ int main(int argc, char **argv)
if
(
mode
&
AUTO_ADD
)
{
for
(
i
=
0
;
i
<
scfg
.
total_dirs
;
i
++
)
{
if
(
lib
[
0
]
&&
stricmp
(
scfg
.
lib
[
scfg
.
dir
[
i
]
->
lib
]
->
sname
,
lib
))
continue
;
if
(
scfg
.
dir
[
i
]
->
misc
&
DIR_NOAUTO
)
continue
;
f
.
dir
=
i
;
...
...
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