Menu

#634 FPDisconnectOldSession won't work

None
closed
None
1
2023-04-11
2016-08-31
kenji uno
No

It seems FPDisconnectOldSession doesn't work and it returns kFPMiscErr = -5014 for now.

However it works, if I modify the libatalk\util\serverchild.c:247 like following:

    if (0&&!child->afpch_valid) {
        /* hmm, client 'guess' the pid, rogue? */
        LOG(log_error, logtype_default, "Reconnect: invalidated child[%u]", pid);
        return 0;
    } else if (0&&child->afpch_uid != uid) {
        LOG(log_error, logtype_default, "Reconnect: child[%u] not the same user", pid);
        return 0;
    }

I think that child->afpchvalid and child->afpchuid aren't assigned on runtime well.
Anyone knows about workaround for this?

kenjiuno

Discussion

  • kenji uno

    kenji uno - 2016-09-05

    Yes, I know.
    I have used netatalk-3.1.9.tar.bz2 for base working code, because github version doesn't have configure.
    Please ignore 0001-HAVE_LDAP.patch.
    I will try if rebase is required.

    kenji uno

     
  • Daniel Markstedt

     
  • Daniel Markstedt

    • status: open --> closed
    • assigned_to: Daniel Markstedt
    • Group: -->
     
  • Daniel Markstedt

    Merged.

     

Log in to post a comment.