Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Commits
fc3addb6
Commit
fc3addb6
authored
Jan 27, 2022
by
Rob Swindell
💬
Browse files
Use new 'vdir' elements in getdir_from_vpath()
parent
51ab0a7f
Pipeline
#2636
passed with stage
in 10 minutes and 56 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/sbbs3/userdat.c
src/sbbs3/userdat.c
+2
-2
No files found.
src/sbbs3/userdat.c
View file @
fc3addb6
...
...
@@ -3832,7 +3832,7 @@ int getdir_from_vpath(scfg_t* cfg, const char* p, user_t* user, client_t* client
for
(
lib
=
0
;
lib
<
cfg
->
total_libs
;
lib
++
)
{
if
(
!
chk_ar
(
cfg
,
cfg
->
lib
[
lib
]
->
ar
,
user
,
client
))
continue
;
if
(
!
stricmp
(
cfg
->
lib
[
lib
]
->
sname
,
p
))
if
(
!
stricmp
(
cfg
->
lib
[
lib
]
->
vdir
,
p
))
break
;
}
if
(
lib
>=
cfg
->
total_libs
)
...
...
@@ -3849,7 +3849,7 @@ int getdir_from_vpath(scfg_t* cfg, const char* p, user_t* user, client_t* client
if
((
!
include_upload_only
||
(
dir
!=
cfg
->
sysop_dir
&&
dir
!=
cfg
->
upload_dir
))
&&
!
chk_ar
(
cfg
,
cfg
->
dir
[
dir
]
->
ar
,
user
,
client
))
continue
;
if
(
!
stricmp
(
cfg
->
dir
[
dir
]
->
code_suffix
,
p
))
if
(
!
stricmp
(
cfg
->
dir
[
dir
]
->
vdir
,
p
))
break
;
}
if
(
dir
>=
cfg
->
total_dirs
)
...
...
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