bin/121512: [sysctl] [patch] sysctl(8) should return 1 if the user is not allowed to change values

Jaakko Heinonen jh at saunalahti.fi
Tue Jun 24 10:50:05 UTC 2008


The following reply was made to PR bin/121512; it has been noted by GNATS.

From: Jaakko Heinonen <jh at saunalahti.fi>
To: bug-followup at FreeBSD.org, romain at blogreen.org
Cc: mtm at 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 -----


More information about the freebsd-bugs mailing list