Re: [Fsp-users] Enable remote directory deletion on FSP-Server?
UDP File transfer protocol
Brought to you by:
hsn
|
From: Radim K. <hs...@se...> - 2009-08-28 20:38:10
|
>> Or has the C function "rmdir()"
>> changed? Today it removes a directory only if the directory is empty.
>>
>>
> i think old code used remove(3), but i am not sure if it was used also
> for directory removals.
>
deldir stopped working because we added new access flags DIR_NOLIST and
DIR_NOGET. Old FSP didnt had them.
=== modified file 'server/file.c'
--- server/file.c 2009-06-14 11:27:16 +0000
+++ server/file.c 2009-08-28 20:29:09 +0000
@@ -612,6 +612,7 @@
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);
|