From 2046500e35726b317a1101d5373e9700530028c2 Mon Sep 17 00:00:00 2001 From: Radim Kolar <> Date: Fri, 28 Aug 2009 22:38:22 +0200 Subject: [PATCH] Fixed removing directory. It stoped working because using dir protection 0 and save_access_rights created .FSP_NO_LIST and .FSP_NO_GET files. --- ChangeLog | 2 ++ server/file.c | 1 + 2 files changed, 3 insertions(+) diff --git a/ChangeLog b/ChangeLog index 55fcdb4..2e67e12 100644 --- a/ChangeLog +++ b/ChangeLog @@ -26,6 +26,8 @@ Version 2.8.1b25 - testing in progress autotools was wrong and fallback to default autotools was wrong. unbreak compilation on systems without large files 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 use getopt from stdio.h instead of getopt.h in fspscan.c diff --git a/server/file.c b/server/file.c index ed5cf7b..49719e4 100644 --- a/server/file.c +++ b/server/file.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"); memset(&null,0,sizeof(DIRINFO)); + null.protection = DIR_LIST | DIR_GET; chdir(pp->fullp); save_access_rights(&null);