]> arthur.barton.de Git - netatalk.git/commitdiff
Dont disconnect sessions if boottimes dont match
authorFrank Lahm <franklahm@googlemail.com>
Tue, 8 Mar 2011 15:53:54 +0000 (16:53 +0100)
committerFrank Lahm <franklahm@googlemail.com>
Tue, 8 Mar 2011 15:53:54 +0000 (16:53 +0100)
NEWS
libatalk/util/server_child.c

diff --git a/NEWS b/NEWS
index 13d0b4940f944c46ecfec710a3db65b80ca1e69d..dc4b1f0bbf20fcd1f3c44f31aef8f2890d273a33 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -4,6 +4,7 @@ Changes in 2.2beta3
 * FIX: afpd: fix option volsizelimit to return a usefull value for the
        volume free space using `du -sh` with popen
 * FIX: afpd: fix idle connection disconnects
+* FIX: afpd: don't disconnect sessions for clients if boottimes don't match
 
 Changes in 2.2beta2
 ====================
index 63f3683a54090e6caa27b5919bd5082e580188e0..ecefbd2cb7502c65ff349e68b3b845f65e88d91b 100644 (file)
@@ -337,9 +337,9 @@ void server_child_kill_one_by_id(server_child *children, int forkid, pid_t pid,
                                 "Session with different pid[%u]", child->pid);
                         }
                     } else {
-                        kill_child(child);
-                        LOG(log_note, logtype_default,
-                            "Terminated disconnected session[%u]", child->pid);
+                        /* One client with multiple sessions */
+                        LOG(log_debug, logtype_default,
+                            "Found another session[%u] for client[%u]", child->pid, pid);
                     }
                 }
             } else {
@@ -347,7 +347,7 @@ void server_child_kill_one_by_id(server_child *children, int forkid, pid_t pid,
                 child->time = boottime;
                 if (child->clientid)
                     free(child->clientid);
-                LOG(log_debug, logtype_default, "Setting client ID for %d", child->pid);
+                LOG(log_debug, logtype_default, "Setting client ID for %u", child->pid);
                 child->uid = uid;
                 child->valid = 1;
                 child->idlen = idlen;