Skip to content
Snippets Groups Projects
  1. Feb 29, 2024
    • Deucе's avatar
      Unlock ssh_mutex before calling sftps_recv() · 3bd80d0e
      Deucе authored
      This should fix the sftp hangs...
      While FreeBSD will return EDEADLOCK when a mutex would deadlock,
      Linux will do what I ask and deadlock.
      
      Since we're not checking the return value of pthread_mutex_lock(),
      this would go completely unnoticed on FreeBSD, resulting in the
      mutex being unlocked early and all sorts of unprotected accesses
      would happen, potentially doing crazy things.  On Linux it just
      deadlocks, and taking a peek at the thread backtraces makes the
      problem obvious.
      
      So, point to Linux for making life more correct for people who
      do incorrect things (locking without checking the return value).
      
      I'd also like to thank nelgin, for sticking with me on this issue
      and being my gdb puppet.
      
      And really, this commit should be shared by all the contributors
      who... 𝆺𝅥𝅮𝆺𝅥𝅮𝆹𝅥𝅯𝆹𝅥𝅯
      3bd80d0e
    • Deucе's avatar
      Allow init_sftp() to safely be called twice. · 821d3715
      Deucе authored
      This prevents the case where input_thread() accepts the sftp
      connection and calls init_sftp(), then answer() does the same thing,
      clobbering the previous state.
      821d3715
    • Deucе's avatar
      Heh, fix /files/ check. · 287d873e
      Deucе authored
      287d873e
    • Deucе's avatar
      Some locking cleanups · b989a39c
      Deucе authored
      b989a39c
    • Deucе's avatar
      Plug some leaks. · 081b5c79
      Deucе authored
      081b5c79
    • Deucе's avatar
      Not all snprintf()s terminate. · c6099f85
      Deucе authored
      c6099f85
  2. Feb 28, 2024
  3. Feb 27, 2024
  4. Feb 26, 2024
    • Rob Swindell's avatar
      Don't log errno value and description as part of ERROR log msg, when 0 · 5e3b427c
      Rob Swindell authored
      If errno is 0, it's definitely no proividing anything of value here. Of
      course, sometimes errno might be non-zero and still be unrelated to the error
      message. <shrug>
      
      For Nelgin:
      !ERROR 0 (Success) in exec.cpp line 644 (js_execfile) compiling "something.js" access=0
      <nelgin> I don't quite get why a successful execution is logged as an error
      5e3b427c
  5. Feb 25, 2024
  6. Feb 24, 2024
Loading