Source-Changes archive

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

CVS commit: src/sbin/sysctl



Module Name:    src
Committed By:   lukem
Date:           Sun Apr  6 05:19:04 UTC 2003

Modified Files:
        src/sbin/sysctl: sysctl.c

Log Message:
Tweak behaviour introduced in rev 1.50;
    *   by default, warning messages go to stderr
    *   if -A or -a is used, send warning messages to stdout instead.

The behaviour in 1.50 meant that
        somevar=`sysctl -n machdep.booted_kernel 2>/dev/null`
could end up with $somevar="machdep.booted_kernel: the value is not available"
rather than the more useful $somevar="".

(This way, "sysctl -A | grep ..." is still useful.)


To generate a diff of this commit:
cvs rdiff -r1.64 -r1.65 src/sbin/sysctl/sysctl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index