Source-Changes-HG archive

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

[src/trunk]: src/external/bsd/blacklist/lib put back setting uid and gid to -...



details:   https://anonhg.NetBSD.org/src/rev/1520da6c5a63
branches:  trunk
changeset: 808643:1520da6c5a63
user:      christos <christos%NetBSD.org@localhost>
date:      Thu May 28 01:01:37 2015 +0000

description:
put back setting uid and gid to -1 if they are not available.

diffstat:

 external/bsd/blacklist/lib/bl.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (29 lines):

diff -r df531d8b578d -r 1520da6c5a63 external/bsd/blacklist/lib/bl.c
--- a/external/bsd/blacklist/lib/bl.c   Wed May 27 22:39:01 2015 +0000
+++ b/external/bsd/blacklist/lib/bl.c   Thu May 28 01:01:37 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bl.c,v 1.25 2015/05/27 22:37:13 christos Exp $ */
+/*     $NetBSD: bl.c,v 1.26 2015/05/28 01:01:37 christos Exp $ */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -33,7 +33,7 @@
 #endif
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: bl.c,v 1.25 2015/05/27 22:37:13 christos Exp $");
+__RCSID("$NetBSD: bl.c,v 1.26 2015/05/28 01:01:37 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/types.h>
@@ -483,6 +483,10 @@
        bi->bi_type = ub.bl.bl_type;
        bi->bi_slen = ub.bl.bl_salen;
        bi->bi_ss = ub.bl.bl_ss;
+#ifndef CRED_MESSAGE
+       bi->bi_uid = -1;
+       bi->bi_gid = -1;
+#endif
        strlcpy(bi->bi_msg, ub.bl.bl_data, MIN(sizeof(bi->bi_msg),
            ((size_t)rlen - sizeof(ub.bl) + 1)));
        return bi;



Home | Main Index | Thread Index | Old Index