If the -d flag is specified, ignore any new values specified and only
display the descriptions of specified nodes. Reported by: Jason Hellenthal jhell of dataix net MFC after: 2 weeks
This commit is contained in:
parent
132ad7aa9b
commit
34790eafe0
@ -201,7 +201,7 @@ parse(char *string)
|
||||
if (oidfmt(mib, len, fmt, &kind))
|
||||
err(1, "couldn't find format of oid '%s'", bufp);
|
||||
|
||||
if (newval == NULL) {
|
||||
if (newval == NULL || dflag) {
|
||||
if ((kind & CTLTYPE) == CTLTYPE_NODE) {
|
||||
if (dflag) {
|
||||
i = show_var(mib, len);
|
||||
|
Loading…
x
Reference in New Issue
Block a user