Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/perfused perfused: use SOL_LOCAL



details:   https://anonhg.NetBSD.org/src/rev/76469008d4e6
branches:  trunk
changeset: 1022840:76469008d4e6
user:      nia <nia%NetBSD.org@localhost>
date:      Sun Aug 08 20:56:54 2021 +0000

description:
perfused: use SOL_LOCAL

diffstat:

 usr.sbin/perfused/perfused.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 5c0f0da5f5b3 -r 76469008d4e6 usr.sbin/perfused/perfused.c
--- a/usr.sbin/perfused/perfused.c      Sun Aug 08 20:55:33 2021 +0000
+++ b/usr.sbin/perfused/perfused.c      Sun Aug 08 20:56:54 2021 +0000
@@ -1,4 +1,4 @@
-/*  $NetBSD: perfused.c,v 1.25 2014/12/12 09:58:39 manu Exp $ */
+/*  $NetBSD: perfused.c,v 1.26 2021/08/08 20:56:54 nia Exp $ */
 
 /*-
  *  Copyright (c) 2010 Emmanuel Dreyfus. All rights reserved.
@@ -125,7 +125,7 @@
         * We do not need peer creds beyond this point
         */
        opt = 0;
-       if (setsockopt(fd, 0, LOCAL_CREDS, &opt, sizeof(opt)) != 0)
+       if (setsockopt(fd, SOL_LOCAL, LOCAL_CREDS, &opt, sizeof(opt)) != 0)
                DWARN("%s: setsockopt LOCAL_CREDS failed", __func__);
 
 #ifdef PERFUSE_DEBUG



Home | Main Index | Thread Index | Old Index