SF.net SVN: geany-plugins:[1041] trunk/geany-plugins/geanyprj/src/utils.c
yurand at users.sourceforge.net
yurand at xxxxx
Wed Oct 28 00:19:28 UTC 2009
Revision: 1041
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1041&view=rev
Author: yurand
Date: 2009-10-28 00:19:28 +0000 (Wed, 28 Oct 2009)
Log Message:
-----------
Skip symlink to prevent infinite recursion
Modified Paths:
--------------
trunk/geany-plugins/geanyprj/src/utils.c
Modified: trunk/geany-plugins/geanyprj/src/utils.c
===================================================================
--- trunk/geany-plugins/geanyprj/src/utils.c 2009-10-27 21:17:11 UTC (rev 1040)
+++ trunk/geany-plugins/geanyprj/src/utils.c 2009-10-28 00:19:28 UTC (rev 1041)
@@ -240,9 +240,14 @@
continue;
filename = g_build_filename(abs_path, name, NULL);
-
- if (g_file_test(filename, G_FILE_TEST_IS_DIR))
+
+ if (g_file_test(filename, G_FILE_TEST_IS_SYMLINK))
{
+ g_free(filename);
+ continue;
+ }
+ else if (g_file_test(filename, G_FILE_TEST_IS_DIR))
+ {
guint l;
GSList *lst = get_file_list(filename, &l, func, NULL);
g_free(filename);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Plugins-Commits
mailing list