Fixed removing directory. It stoped working because using dir protection 0
and save_access_rights created .FSP_NO_LIST and .FSP_NO_GET files.
This commit is contained in:
parent
5bfc057798
commit
2046500e35
|
|
@ -26,6 +26,8 @@ Version 2.8.1b25 - testing in progress
|
||||||
autotools was wrong and fallback to default autotools was wrong.
|
autotools was wrong and fallback to default autotools was wrong.
|
||||||
unbreak compilation on systems without large files
|
unbreak compilation on systems without large files
|
||||||
cygwin support disabled
|
cygwin support disabled
|
||||||
|
frmdir works now. It didnt worked due to adding new access rights
|
||||||
|
DIR_NOLIST and DIR_NOGET.
|
||||||
|
|
||||||
Version 2.8.1b24 - 19 Feb 2005
|
Version 2.8.1b24 - 19 Feb 2005
|
||||||
use getopt from stdio.h instead of getopt.h in fspscan.c
|
use getopt from stdio.h instead of getopt.h in fspscan.c
|
||||||
|
|
|
||||||
|
|
@ -612,6 +612,7 @@ const char *server_del_dir (PPATH * pp, DIRINFO *di)
|
||||||
if(!(S_ISDIR(sb.st_mode))) return("rmdir: not an ordinary directory");
|
if(!(S_ISDIR(sb.st_mode))) return("rmdir: not an ordinary directory");
|
||||||
|
|
||||||
memset(&null,0,sizeof(DIRINFO));
|
memset(&null,0,sizeof(DIRINFO));
|
||||||
|
null.protection = DIR_LIST | DIR_GET;
|
||||||
|
|
||||||
chdir(pp->fullp);
|
chdir(pp->fullp);
|
||||||
save_access_rights(&null);
|
save_access_rights(&null);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user