NetBSD-Bugs archive

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

misc/54425: spurious "partitions a and b overlap" output in daily security report

>Number:         54425
>Category:       misc
>Synopsis:       daily security report contains spurious "partitions a and b overlap" message
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    misc-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Aug 01 11:50:00 +0000 2019
>Originator:     Edgar FuÃ?
>Release:        NetBSD 8.1_STABLE
Mathematisches Institut der Universität Bonn
	Due to re-factoring of disklabel handling in /stc/security, disklabel's stderr goes into the security report.
	For me, this leads to "partitions a and b overlap" messages in the security report. Overlap is intentional since a is a RAIDframe component and b the dump space (swap partition inside the RAID).
	Generate overlapping disc partitions, run /etc/security.
Index: security
RCS file: /cvsroot/src/etc/security,v
retrieving revision 1.121
diff -u -r1.121 security
--- security    29 Feb 2016 16:16:42 -0000      1.121
+++ security    1 Aug 2019 11:38:59 -0000
@@ -919,7 +919,7 @@
 			if disklabel $i > /dev/null 2>&1; then
-				disklabel $i > "$work_dir/disklabel.$i"
+				disklabel $i > "$work_dir/disklabel.$i" 2> /dev/null

Home | Main Index | Thread Index | Old Index