Hi,

I've found a small bug in parsing/validating permissions. There is
also additional permission T and S (upper case).
See for example here:
http://en.wikipedia.org/wiki/File_system_permissions#Symbolic_notation_and_additional_permission
On my Linux/ftp server I've some directories marked with S/T
permissions, and it cannot be handled properly while using
TFtpSend.List, because permission mask is invalid and it use different
mask (not "mostly used UNIX format") since T/S is currently not as a
valid permission.

Here is a quick fix in file ftpsend.pas (add 'T', 'S', to set of char):

function TFTPList.CheckValues: Boolean;
var
  x, n: integer;
begin
...
    for n := 1 to 10 do
      if not(Permissions[n] in
        ['a', 'b', 'c', 'd', 'h', 'l', 'p', 'r', 's', 't', 'T', 'S',
'w', 'x', 'y', '-']) then   // <- add 'T', 'S', to set of char ---
Line 1538
        Exit;

(Synapse R38)

--
Best regards
Krystian Bigaj

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to