Module Name:    src
Committed By:   christos
Date:           Thu May 28 01:01:37 UTC 2015

Modified Files:
        src/external/bsd/blacklist/lib: bl.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/external/bsd/blacklist/lib/bl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/bsd/blacklist/lib/bl.c
diff -u src/external/bsd/blacklist/lib/bl.c:1.25 src/external/bsd/blacklist/lib/bl.c:1.26
--- src/external/bsd/blacklist/lib/bl.c:1.25	Wed May 27 18:37:13 2015
+++ src/external/bsd/blacklist/lib/bl.c	Wed May 27 21:01:37 2015
@@ -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 @@ bl_recv(bl_t b)
 	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;

Reply via email to