Merge branch 'wip/smcv/symlink-detection-doc' into 'main'

fileutils: Make some sample code detect symlinks as intended

See merge request GNOME/glib!3265
This commit is contained in:
Emmanuele Bassi 2023-02-10 20:52:08 +00:00
commit 585c7d2db6

View File

@ -329,7 +329,7 @@ g_mkdir_with_parents (const gchar *pathname,
* }
*
* // DO THIS INSTEAD
* fd = g_open (filename, O_WRONLY);
* fd = g_open (filename, O_WRONLY | O_NOFOLLOW);
* if (fd == -1)
* {
* // check error