Wrong perms returned by FileZilla server for plain files
|Reported by:||meeroh||Owned by:|
|Keywords:||Cc:||meeroh, Tim Kosse|
|Component version:||Operating system type:|
|Operating system version:|
In FileZilla Server's Permissions.cpp,
memcpy(pDir->buffer + pDir->len, "-xw", 3);
memcpy(pDir->buffer + pDir->len, "-rw", 3);
Right now, the server reports that every file is executable by
owner, which is bad for two reasons: 1. it's wrong, since not
every file is executable and 2. It causes clients which parse
the permissions string to fail, because the string is malformed.
(x in the 2nd place is invalid).