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:
Radim Kolar 2009-08-28 22:38:22 +02:00
parent 5bfc057798
commit 2046500e35
2 changed files with 3 additions and 0 deletions

View File

@ -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

View File

@ -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);