Date: Tue, 24 Jun 2008 10:50:04 GMT From: Jaakko Heinonen <jh@saunalahti.fi> To: freebsd-bugs@FreeBSD.org Subject: Re: bin/121512: [sysctl] [patch] sysctl(8) should return 1 if the user is not allowed to change values Message-ID: <200806241050.m5OAo4Yg051570@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/121512; it has been noted by GNATS. From: Jaakko Heinonen <jh@saunalahti.fi> To: bug-followup@FreeBSD.org, romain@blogreen.org Cc: mtm@FreeBSD.org Subject: Re: bin/121512: [sysctl] [patch] sysctl(8) should return 1 if the user is not allowed to change values Date: Tue, 24 Jun 2008 13:46:55 +0300 This bug (bin/121512) was fixed by this change: ----- Forwarded message from Mike Makonnen ----- mtm 2008-06-23 22:06:28 UTC FreeBSD src repository Modified files: etc/rc.d auto_linklocal power_profile sysctl sbin/sysctl sysctl.c Log: SVN rev 179965 on 2008-06-23 22:06:28Z by mtm The sysctl(8) program exits on some errors and only emits warnings on others. In the case where it displayed warnings it would still return succesfully. Modify it so that it returns the number of sysctls that it was not able to set. Make use of this in rc.d to display only *unsuccessfull* attempts to set sysctls. Revision Changes Path 1.6 +4 -1 src/etc/rc.d/auto_linklocal 1.13 +5 -1 src/etc/rc.d/power_profile 1.19 +3 -1 src/etc/rc.d/sysctl 1.89 +5 -2 src/sbin/sysctl/sysctl.c ----- End forwarded message -----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200806241050.m5OAo4Yg051570>