Commit 4a2302c2 authored by Max Kellermann's avatar Max Kellermann

inotify_update: follow symlinks

This is probably unsafe, and doesn't protect against symlink loops, but we will eventually add this when we bring update*.c and inotify*.c closer together.
parent 980201a6
......@@ -179,8 +179,7 @@ recursive_watch_subdirectories(struct watch_directory *directory,
continue;
child_path_fs = g_strconcat(path_fs, "/", ent->d_name, NULL);
/* XXX what about symlinks? */
ret = lstat(child_path_fs, &st);
ret = stat(child_path_fs, &st);
if (ret < 0) {
g_warning("Failed to stat %s: %s",
child_path_fs, g_strerror(errno));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment