Annotation of pkgsrc/sysutils/lsof/patches/patch-aa, revision 1.24

1.24    ! atatat      1: $NetBSD: patch-aa,v 1.23 2003/11/22 23:30:03 atatat Exp $
1.3       agc         2: 
1.19      tron        3: If LSOF_MORE_SECURE is non-zero, compile lsof with security, and
1.20      atatat      4: only let unprivileged (non-root) users view their own open files.
                      5: Set LSOF_LESS_SECURE_SOCKETS to non-zero in order to allow non-root
                      6: users to see open sockets, even when LSOF_MORE_SECURE is set.
1.19      tron        7: 
1.24    ! atatat      8: Also, incorporate a patch from the author that widens the NETBSDV
        !             9: definition to account for new current versioning system, properly
        !            10: handles the sys/bufq.h mess, adds a bit more to procfs support, and
        !            11: adds ptyfs support.
        !            12: 
        !            13: --- dialects/n+obsd/machine.h.orig     2004-10-17 17:55:27.000000000 -0400
1.20      atatat     14: +++ dialects/n+obsd/machine.h
1.24    ! atatat     15: @@ -383,7 +383,9 @@
1.19      tron       16:   * (the one that its user logged on with) of the lsof process.
                     17:   */
                     18:  
                     19: -/* #define    HASSECURITY     1 */
                     20: +#if LSOF_MORE_SECURE
                     21: +#define       HASSECURITY     1
1.20      atatat     22: +#endif
                     23:  
                     24:  
                     25:  /*
1.24    ! atatat     26: @@ -392,7 +394,9 @@
1.20      atatat     27:   * listing is selected by the "-i" option.
                     28:   */
                     29:  
                     30: -/* #define    HASNOSOCKSECURITY       1       */
                     31: +#if LSOF_LESS_SECURE_SOCKETS
                     32: +#define       HASNOSOCKSECURITY       1
1.19      tron       33: +#endif
1.15      kim        34:  
1.12      wiz        35:  
1.19      tron       36:  /*
1.24    ! atatat     37: @@ -407,9 +411,9 @@
        !            38:  
        !            39:  #define       HASSETLOCALE    1
        !            40:  
        !            41: -# if  defined(NETBSDV) && NETBSDV>=1060
        !            42: +# if  defined(NETBSDV) && NETBSDV>=1006000
        !            43:  #define       HASWIDECHAR     1
        !            44: -# endif       /* defined(NETBSDV) && NETBSDV>=1060*/
        !            45: +# endif       /* defined(NETBSDV) && NETBSDV>=1006000 */
        !            46:  
        !            47:  /* #define    WIDECHARINCL    <wchar.h>       */
        !            48:  
        !            49: @@ -529,11 +533,11 @@
        !            50:  /* #define    USE_LIB_READMNT                 1          rmnt.c */
        !            51:  /* #define    USE_LIB_REGEX                   1          regex.c */
        !            52:  
        !            53: -# if  (defined(OPENBSDV) && OPENBSDV>=2010) || (defined(NETBSDV) && NETBSDV>=1020)
        !            54: +# if  (defined(OPENBSDV) && OPENBSDV>=2010) || (defined(NETBSDV) && NETBSDV>=1002000)
        !            55:  #define       USE_LIB_RNMH                            1       /* rnmh.c */
        !            56: -# else        /* (defined(OPENBSDV) && OPENBSDV<2010) && (defined(NETBSDV) && NETBSDV<1020) */
        !            57: +# else        /* (defined(OPENBSDV) && OPENBSDV<2010) && (defined(NETBSDV) && NETBSDV<1002000) */
        !            58:  #define       USE_LIB_RNAM                            1       /* rnam.c */
        !            59: -# endif       /* (defined(OPENBSDV) && OPENBSDV>=2010) || (defined(NETBSDV) && NETBSDV>=1020) */
        !            60: +# endif       /* (defined(OPENBSDV) && OPENBSDV>=2010) || (defined(NETBSDV) && NETBSDV>=1002000) */
        !            61:  
        !            62:  /* #define    USE_LIB_RNCH                    1          rnch.c */
        !            63:  /* #define    USE_LIB_SNPF                    1          snpf.c */

CVSweb <webmaster@jp.NetBSD.org>