I'd assume that all servers are using strtoul(,,8) & bitwise operators to convert permissions to machine readable form;
& 0001 // Executable (other)
& 0002 // Writable
& 0004 // Readable
& 0010 // Executable (group)
& 0020
& 0040
& 0100 // Executable (user)
& 0200
& 0400
Therefore 4digit form should work as well.
|