Solutionunvalidated
The fix (in v2.7.7) adds a symlink check using safe_lstat() before calling create_file() — before the safe_open(O_CREAT|O_TRUNC) call. Tension: refusing to write to symlinks unless --follow-symlinks is explicitly specified. Outcome: if (safe_lstat(file, &st) == 0 && S_ISLNK(st.st_mode)) error();.
bcaadda8-dac4-4bab-b065-7e5f877c7437
The fix (in v2.7.7) adds a symlink check using safe_lstat() before calling create_file() — before the safe_open(O_CREAT|O_TRUNC) call. Tension: refusing to write to symlinks unless --follow-symlinks is explicitly specified. Outcome: if (safe_lstat(file, &st) == 0 && S_ISLNK(st.st_mode)) error();.