Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

  1. 04 Apr, 2021 3 commits
  2. 22 Feb, 2021 1 commit
  3. 16 Aug, 2020 1 commit
  4. 20 Apr, 2020 1 commit
  5. 04 May, 2019 2 commits
    • rswindell's avatar
      c48ef5f7
    • rswindell's avatar
      Define and use a wrapper for JS_GetInstancePrivate(): js_GetClassPrivate() · 6f83c4ff
      rswindell authored
      Use this in place of JS_GetPrivate() in native class methods that need the
      class instance's private data pointer and will do bad things if that pointer
      points to something other than what is expected. mcmlxxix (matt) discovered
      that using Object.apply(), you can invoke class methods where the 'this'
      instance is a different class. This would result in
      "Internal Error: No Private Data." or a crash.
      So now, gracefully detect this condition and report a meaningful error:
      "'<class-name>' instance: No Private Data or Class Mismatch"
      
      Also, important to note: if the method uses JS_THIS_OBJECT to get the JSObject*
      to pass to JS_Get*Private, then it must do this *before* it calls JS_SET_RVAL.
      
      From jsapi.h:
       * NB: there is an anti-dependency between JS_CALLEE and JS_SET_RVAL: native
       * methods that may inspect their callee must defer setting their return value
       * until after any such possible inspection. Otherwise the return value will be
       * inspected instead of the callee function object.
      
      The js_crypt*.c files still need this treatment.
      6f83c4ff
  6. 20 Feb, 2018 2 commits
  7. 01 Dec, 2016 1 commit
    • rswindell's avatar
      Error messages logged with errormsg() now contain the name of the C/C++ · b4b6713e
      rswindell authored
      function where the error is being reported from. So the WHERE macro now
      contains the __FUNCTION__ "macro" and the various js*.c files that use the
      WHERE macro to report errors had to be updated too.
      Also, the 'access' argument is now being passed as a signed long rather than
      unsigned long. Status/return values are often passed in here (e.g. from smblib)
      and may be negative. This argument was being displayed with %ld but wasn't
      being passed in as a signed value, so on 64-bit long systems, negative numbers
      were just printed as large (4M+) numbers.
      Also, no need to call getfname() in errormsg() since this is embedded in the
      WHERE macro (since 2009).
      b4b6713e
  8. 13 Oct, 2013 1 commit
  9. 15 Sep, 2013 1 commit
  10. 11 Feb, 2013 1 commit
  11. 10 Feb, 2013 1 commit
  12. 07 Feb, 2013 4 commits
  13. 23 Oct, 2012 1 commit
  14. 15 Jun, 2012 1 commit
  15. 29 Oct, 2011 1 commit
  16. 26 Oct, 2011 1 commit
  17. 19 Oct, 2011 1 commit
  18. 16 Oct, 2011 2 commits
  19. 14 Oct, 2011 1 commit
  20. 11 Oct, 2011 1 commit
  21. 10 Oct, 2011 1 commit
  22. 09 Oct, 2011 4 commits
  23. 08 Oct, 2011 1 commit
  24. 09 Sep, 2011 2 commits
  25. 07 Sep, 2011 1 commit
  26. 05 Sep, 2011 1 commit