git: dsynth - Log the portdir for all bulk scan errors

Matthew Dillon dillon at crater.dragonflybsd.org
Wed Jul 29 14:12:17 PDT 2020


commit f9d29536fef701df4f611369700850fb39f3f6c5
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Wed Jul 29 14:10:19 2020 -0700

    dsynth - Log the portdir for all bulk scan errors
    
    * All bulk scan errors are now able to log the portdir for the errors,
      and will also log the errors to 00_last_results.log.
    
    * Implemented by setting stderr to a unix-domain socket during the run
      and using SO_PASSCRED.
    
    * Requires a kernel which supports SO_PASSCRED.  Kernels which do not
      support SO_PASSCRED will still log the errors, but without the
      portdir prefix.

Summary of changes:
 usr.bin/dsynth/build.c   |   2 +-
 usr.bin/dsynth/dsynth.h  |   4 +-
 usr.bin/dsynth/pkglist.c |   8 +-
 usr.bin/dsynth/repo.c    |   4 +-
 usr.bin/dsynth/subs.c    | 224 +++++++++++++++++++++++++++++++++++++++++++++--
 5 files changed, 229 insertions(+), 13 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/f9d29536fef701df4f611369700850fb39f3f6c5


-- 
DragonFly BSD source repository


More information about the Commits mailing list