Code

Make the Home mechanism sensizive to non people bases.
[gosa.git] / gosa-si / gosa-si-client
index 7babcca8cd1e0cfba22b73055d2e6c6d1fe30ea5..7f721da2f1a6675ce2fded8e859549b6b3a91bfe 100755 (executable)
@@ -818,7 +818,7 @@ sub trigger_seen_messages {
     # Select all files under /tmp with prefix 'goto_notify'
     my $goto_dir = "/tmp";
     opendir(DIR, $goto_dir);
-    my @goto_files = grep { /^goto_notify_/ && -f "$goto_dir/$_" } readdir(DIR);
+    my @goto_files = grep { /.+\.goto_notify$/ && -f "$goto_dir/$_" } readdir(DIR);
     closedir DIR;
 
     # Check if file has 'seen' tag
@@ -1067,6 +1067,7 @@ sub server_input {
 
                        # if client is alread in a registration process, that means not registered, do nothing
                        # if not, cause re-registration
+# TODO : This if-else can cause a registration deadlock. Currently I can not reproduce the deadlock and don't have a clue what is the reason for the deadlock
                        if (not $REGISTERED) {
                                &daemon_log("WARNING: gosa-si-client is already in a registration process so ignore this message", 3);
                        } else {