Skip to content
Snippets Groups Projects
Commit abba1438 authored by rswindell's avatar rswindell
Browse files

An FTP aliased file or directory as a description of "hidden", don't display it

in directory listings.
parent d73c2462
No related branches found
No related tags found
No related merge requests found
......@@ -74,6 +74,7 @@
#define BBS_VIRTUAL_PATH "bbs:/""/" /* this is actually bbs:<slash><slash> */
#define LOCAL_FSYS_DIR "local:"
#define BBS_FSYS_DIR "bbs:"
#define BBS_HIDDEN_ALIAS "hidden"
#define TIMEOUT_THREAD_WAIT 60 /* Seconds */
......@@ -808,6 +809,9 @@ BOOL js_generate_index(JSContext* js_cx, JSObject* parent,
while(*dp && *dp<=' ') dp++;
truncsp(dp);
if(stricmp(dp,BBS_HIDDEN_ALIAS)==0)
continue;
alias_dir=FALSE;
/* Virtual Path? */
......@@ -2278,6 +2282,7 @@ static void ctrl_thread(void* arg)
char* p;
char* np;
char* tp;
char* dp;
char password[64];
char fname[MAX_PATH+1];
char qwkfile[MAX_PATH+1];
......@@ -3398,6 +3403,13 @@ static void ctrl_thread(void* arg)
while(*tp && *tp>' ') tp++;
if(*tp) *tp=0;
dp=tp+1; /* description pointer */
while(*dp && *dp<=' ') dp++;
truncsp(dp);
if(stricmp(dp,BBS_HIDDEN_ALIAS)==0)
continue;
/* Virtual Path? */
if(!strnicmp(np,BBS_VIRTUAL_PATH,strlen(BBS_VIRTUAL_PATH))) {
if((dir=getdir(np+strlen(BBS_VIRTUAL_PATH),&user))<0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment