Skip to content

fileutils: Make some sample code detect symlinks as intended

Simon McVittie requested to merge wip/smcv/symlink-detection-doc into main

The sample code here wasn't a race-free version of the race-susceptible anti-pattern, because it would have dereferenced a symlink automatically.

Fixes: 293b4923 "Clarify g_file_test() docs about TOCTOU bugs"

Merge request reports