The "protection mode" returned by stat() has more than 3 octets needed by the chmod(), it cause incorrect permissions assignation.
The "protection mode" returned by stat() has more than 3 octets needed by the chmod(), it cause incorrect permissions assignation.