hi
~ > cu -l cua00 -s 115200
(on -stable) quits with an error
cu: hw.ucomnames: Operation not supported
as there is only
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
and no any ucom devices on that machine
so as below there is no hw.ucomnames value
~ > sysctl hw.ucomnames
sysctl: hw.ucomnames: value is not available
seems one of last changes
src/usr.bin/cu/cu.c 2023/10/02 1.29
in
char *
get_ucomnames(void)
...
if (sysctl(mib, 2, NULL, &size, NULL, 0) == -1 || size == 0)
err(1, "hw.ucomnames");
makes problem in my case.
shouldn't we have
- err(1, "hw.ucomnames");
+ break;
as i'm not experienced enough to suggest diff (i might be missing sth)
so.. verify that please.
aphekz