fixed permission check for overwriting uploaded files
This commit is contained in:
parent
c48b2d488f
commit
2fe13c2e32
|
|
@ -19,6 +19,10 @@ Version NEXT
|
|||
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
|
||||
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
|
||||
GNU autotools build system was entirely replaced by SCons
|
||||
|
|
|
|||
|
|
@ -912,7 +912,7 @@ const char *server_install (PPATH * pp, unsigned long inet_num,
|
|||
}
|
||||
|
||||
if(fexist(pp->fullp) &&
|
||||
( (di->protection & DIR_DEL) || acc[0]=='O' )
|
||||
( (di->protection & DIR_DEL)==0 && acc[0] != 'O')
|
||||
)
|
||||
{
|
||||
unlink(tname);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user