NetBSD-Bugs archive

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

bin/53742: src/etc/MAKEDEV.tmpl rev 1.196 has duplicate case label

>Number:         53742
>Category:       bin
>Synopsis:       src/etc/MAKEDEV.tmpl rev 1.196 has duplicate case pattern
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Nov 25 13:35:00 +0000 2018
>Originator:     Martin Husemann
>Release:        NetBSD 8.99.26
The NetBSD Foundation, Inc.
System: NetBSD 8.99.26 NetBSD 8.99.26 (NIGHT-OWL) #629: Mon Nov 19 06:49:23 CET 2018 amd64
Architecture: x86_64
Machine: amd64

There is a duplicate switch case pattern "apm)" in etc/MAKEDEV.tmpl.
I have no idea how sh(1) resolves this (I guess by always using the first,
so the second is dead code) or how it is supposed to work, but
we should either comment it properly or avoid it.

Code inspection


Home | Main Index | Thread Index | Old Index