mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Normalize symlinks in fsnotifier
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -284,7 +284,9 @@ static int walk_tree(const char* path, watch_node* parent, array* ignores) {
|
||||
|
||||
|
||||
int watch(const char* root, array* ignores) {
|
||||
return walk_tree(root, NULL, ignores);
|
||||
char buf[PATH_MAX];
|
||||
const char* normalized = realpath(root, buf);
|
||||
return walk_tree((normalized != NULL ? normalized : root), NULL, ignores);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -1,2 +1,5 @@
|
||||
#!/bin/sh
|
||||
echo "compiling 32-bit version"
|
||||
gcc -O2 -m32 -Wall -std=c99 -D_BSD_SOURCE -D_XOPEN_SOURCE=500 -o fsnotifier main.c inotify.c util.c
|
||||
echo "compiling 64-bit version"
|
||||
gcc -O2 -m64 -Wall -std=c99 -D_BSD_SOURCE -D_XOPEN_SOURCE=500 -o fsnotifier64 main.c inotify.c util.c
|
||||
|
||||
Reference in New Issue
Block a user