View | Details | Raw Unified | Return to bug 112556 | Differences between
and this patch

Collapse All | Expand All

(-)sbin/sysctl/sysctl.c (+5 lines)
Lines 568-578 Link Here
568
		sep = ": ";
568
		sep = ": ";
569
569
570
	if (dflag) {	/* just print description */
570
	if (dflag) {	/* just print description */
571
		char *s = buf;
572
571
		qoid[1] = 5;
573
		qoid[1] = 5;
572
		j = sizeof(buf);
574
		j = sizeof(buf);
573
		i = sysctl(qoid, nlen + 2, buf, &j, 0, 0);
575
		i = sysctl(qoid, nlen + 2, buf, &j, 0, 0);
574
		if (!nflag)
576
		if (!nflag)
575
			printf("%s%s", name, sep);
577
			printf("%s%s", name, sep);
578
		/* fix multilineal descriptions */	
579
		while ((s = strchr(s, '\n')) != NULL)
580
			*s++ = ' ';
576
		printf("%s", buf);
581
		printf("%s", buf);
577
		return (0);
582
		return (0);
578
	}
583
	}

Return to bug 112556