This was run on CYGWIN_NT-10.0 NVEBLODKIF 3.1.5(0.340/5/3) 2020-06-01 08:59
x86_64 Cygwin
Creating a directory using mkdir API on C with 0777 permissions with the
name having the following ASCII values causes the directory to be created
with no user permissions and no timestamp. Length of the name is 66
character long including the terminating NULL character.
ASCII values of characters in the string: 96 234 195 186 63 63 50 109 4 84
208 246 186 170 197 33 131 113 134 209 109 251 98 226 179 93 178 32 242 189
236 88 14 107 134 133 93 126 210 61 194 27 209 172 244 15 12 222 9 93 10
149 10 235 157 42 114 125 198 182 96 240 171 164 106 0
Unit test case to replicate the scenario
#include <stdio.h>
#include <sys/stat.h>
#include <sys/types.h>
int main () {
char tempPath[66] = {96, 234, 195, 186, 63, 63, 50, 109, 4, 84, 208, 246,
186, 170, 197, 33, 131, 113, 134, 209, 109, 251, 98, 226, 179, 93, 178, 32,
242, 189, 236, 88, 14, 107, 134, 133, 93, 126, 210, 61, 194, 27, 209, 172,
244, 15, 12, 222, 9, 93, 10, 149, 10, 235, 157, 42, 114, 125, 198, 182, 96,
240, 171, 164, 106, 0};
mkdir(tempPath, 0777);
return 1;
}