1. 29 Apr, 2020 1 commit
  2. 13 Apr, 2020 2 commits
  3. 10 Feb, 2020 1 commit
  4. 28 Jan, 2020 1 commit
  5. 07 Jan, 2020 1 commit
  6. 23 Oct, 2019 1 commit
  7. 21 Oct, 2018 2 commits
  8. 13 May, 2018 1 commit
    • Eli Schwartz's avatar
      Remove all modelines from the project · 860e4c49
      Eli Schwartz authored and Allan McRae's avatar Allan McRae committed
      
      
      Many of these are pointless (e.g. there is no need to explicitly turn on
      spellchecking and language dictionaries for the manpages by default).
      
      The only useful modelines are the ones enforcing the project coding
      standards for indentation style (and "maybe" filetype/syntax, but
      everything except the asciidoc manpages and makepkg.conf is already
      autodetected), and indent style can be applied more easily with
      .editorconfig
      
      Signed-off-by: Eli Schwartz's avatarEli Schwartz <eschwartz@archlinux.org>
      Signed-off-by: Allan McRae's avatarAllan McRae <allan@archlinux.org>
      860e4c49
  9. 14 Mar, 2018 1 commit
  10. 16 Apr, 2017 2 commits
  11. 04 Jan, 2017 1 commit
  12. 22 Oct, 2016 1 commit
  13. 10 Oct, 2016 2 commits
    • Allan McRae's avatar
      Remove SHA224 support · 87ee9693
      Allan McRae authored
      
      
      This was included due to use of PolarSSL's implementation for our internal
      SHA2 support.  As our internal checksum calculations are now removed, we
      can also remove this unused code path.
      
      Signed-off-by: Allan McRae's avatarAllan McRae <allan@archlinux.org>
      87ee9693
    • Allan McRae's avatar
      Remove internal md5 and sha2 implementations · 05e1b8de
      Allan McRae authored
      
      
      The internal implementations for md5 and sha256 checksums have not been merged
      from upstream sources for a long time.  Instead of us carrying copies of code
      from other projects, we should just support building against multiple libraries
      that provide such functionality.
      
      This patch removes the md5 and sha2 code (originally obtained from PolarSSL)
      from our repository.  The configure script will now error unless at least one
      library supporting checksum generation is present, with the only library
      currently supported being openssl.  It will be relatively simple for other
      such libraries (e.g. nettle) to be supported if anyone wishes to add them.
      
      Signed-off-by: Allan McRae's avatarAllan McRae <allan@archlinux.org>
      05e1b8de
  14. 05 May, 2016 1 commit
    • Allan McRae's avatar
      Avoid logical OR duplication warning from gcc-6 · 3729ef7a
      Allan McRae authored
      
      
      The value EAGAIN is allowed by POSIX to be the same as EWOULDBLOCK, but this is
      not guaranteed. Thus on some systems (e.g. glibc Linux), we get a warning that
      the logical OR is being performed on two expressions of the same type. We can
      not get rid of this test in case any system defines these as unique values.
      
      Suggested-by: Dave Reisner
      Signed-off-by: Allan McRae's avatarAllan McRae <allan@archlinux.org>
      3729ef7a
  15. 23 Feb, 2016 1 commit
  16. 04 Jan, 2016 1 commit
  17. 06 Dec, 2015 1 commit
  18. 28 Nov, 2015 2 commits
  19. 11 Nov, 2015 1 commit
  20. 12 May, 2015 1 commit
  21. 26 Mar, 2015 1 commit
  22. 01 Feb, 2015 1 commit
  23. 21 Jan, 2015 1 commit
  24. 27 Dec, 2014 1 commit
  25. 23 Sep, 2014 1 commit
    • Andrew Gregory's avatar
      wrap fgets to retry on EINTR · c792262b
      Andrew Gregory authored and Allan McRae's avatar Allan McRae committed
      
      
      The read() underlying fgets() can be interrupted by a signal handler
      causing fgets() to return NULL.  Before we started handling SIGWINCH,
      the odds of interrupting a read were low and typically resulted in
      termination anyway.  Replace all fgets calls with a wrapper that retries
      in EINTR.
      
      Signed-off-by: default avatarAndrew Gregory <andrew.gregory.8@gmail.com>
      c792262b
  26. 03 Aug, 2014 1 commit
  27. 03 Mar, 2014 2 commits
  28. 28 Jan, 2014 1 commit
  29. 06 Jan, 2014 2 commits
    • Dan McGee's avatar
      Use O_CLOEXEC as much as possible when opening files · 086bbc5b
      Dan McGee authored and Allan McRae's avatar Allan McRae committed
      
      
      When calling open(), use O_CLOEXEC as much as possible to ensure the
      file descriptor is closed when and if a process using libalpm forks.
      
      For most of these cases, and especially in utility functions, the file
      descriptor is opened and closed in the same function, so we don't have
      too much to worry about. However, for things like the log file and
      database lock file, we should ensure descriptors aren't left hanging
      around for children to touch.
      
      This patch is inspired by the problem in FS#36161, where an open file
      descriptor to the current working directory prevents chroot() from
      working on FreeBSD. We don't need this file descriptor in the child
      process, so open it (and now several others) with O_CLOEXEC.
      
      Signed-off-by: default avatarDan McGee <dan@archlinux.org>
      Signed-off-by: Allan McRae's avatarAllan McRae <allan@archlinux.org>
      086bbc5b
    • Allan McRae's avatar
      Update copyright years for 2014 · 3bb3b155
      Allan McRae authored
      
      
      Signed-off-by: Allan McRae's avatarAllan McRae <allan@archlinux.org>
      3bb3b155
  30. 15 Dec, 2013 1 commit
    • Wolfgang Bumiller's avatar
      Close file descirptor before fork · 20127e73
      Wolfgang Bumiller authored and Allan McRae's avatar Allan McRae committed
      
      
      FreeBSD chroot(2) fails with EPERM when a directory file descriptor is open
      with either `kern.chroot_allow_open_directories` being 0, or when the process
      already is inside a chroot.  This is exposed in alpm_run_chroot that uses
      opendir() to open a file descriptor to the current directory before doing
      the forking and chrooting.  Since the file descriptor is not used in the
      forked process, we close it.
      
      Fixes FS#36161.
      
      Signed-off-by: Allan McRae's avatarAllan McRae <allan@archlinux.org>
      20127e73
  31. 15 Nov, 2013 1 commit
  32. 03 Sep, 2013 1 commit
  33. 30 Jul, 2013 1 commit