fixed permission check for overwriting uploaded files

This commit is contained in:
Radim Kolar 2009-09-14 16:41:30 +02:00
parent c48b2d488f
commit 2fe13c2e32
2 changed files with 5 additions and 1 deletions

View File

@ -19,6 +19,10 @@ Version NEXT
We can now reupload last block which can happen if fspd server is We can now reupload last block which can happen if fspd server is
restarted and reply to upload command is lost on way from server restarted and reply to upload command is lost on way from server
to client. to client.
Check for overwriting uploaded files in fspd was reversed by mistake.
Now if you want to overwrite file you must have permission for
deleting and adding files or be directory owner.
if you want to overwrite
Version 2.8.1b25 - 10 Sep 2009 Version 2.8.1b25 - 10 Sep 2009
GNU autotools build system was entirely replaced by SCons GNU autotools build system was entirely replaced by SCons

View File

@ -912,7 +912,7 @@ const char *server_install (PPATH * pp, unsigned long inet_num,
} }
if(fexist(pp->fullp) && if(fexist(pp->fullp) &&
( (di->protection & DIR_DEL) || acc[0]=='O' ) ( (di->protection & DIR_DEL)==0 && acc[0] != 'O')
) )
{ {
unlink(tname); unlink(tname);