[Xfce4-commits] [xfce/xfce4-panel] 01/01: Do not descend to directories that are symlinks.

noreply at xfce.org noreply at xfce.org
Sun Jan 25 03:19:38 CET 2015


This is an automated email from the git hooks/post-receive script.

andrzejr pushed a commit to branch master
in repository xfce/xfce4-panel.

commit 718500b0a840ca5ca018bd4c2b0531f663803bc1
Author: Andrzej <ndrwrdck at gmail.com>
Date:   Sun Jan 25 02:19:26 2015 +0000

    Do not descend to directories that are symlinks.
    
    This avoids possibility of infinite loops during recursion.
    The assumption is that all directories are still in /usr/share/zoneinfo,
    that is, none of the symlinks point outside of it.
---
 plugins/clock/clock.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/plugins/clock/clock.c b/plugins/clock/clock.c
index 1d82600..6c80978 100644
--- a/plugins/clock/clock.c
+++ b/plugins/clock/clock.c
@@ -895,7 +895,8 @@ clock_plugin_configure_zoneinfo_model_insert (GtkListStore *store,
 
       if (g_file_test (filename, G_FILE_TEST_IS_DIR))
         {
-          clock_plugin_configure_zoneinfo_model_insert (store, filename);
+          if (!g_file_test (filename, G_FILE_TEST_IS_SYMLINK))
+            clock_plugin_configure_zoneinfo_model_insert (store, filename);
         }
       else
         {

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list