svn commit: r252350 - stable/9/etc/periodic/daily

John Baldwin jhb at FreeBSD.org
Fri Jun 28 18:25:05 UTC 2013


Author: jhb
Date: Fri Jun 28 18:25:04 2013
New Revision: 252350
URL: http://svnweb.freebsd.org/changeset/base/252350

Log:
  MFC 252205:
  If daily_status_security_inline is set, the rc value needs to be
  forced to 3 so that the output of this script is always displayed.
  In fact, setting this flag is identical to setting
  daily_status_security_output to an empty string.  To make the logic
  less confusing, change the behavior of daily_status_security_inline
  such that it just forces daily_status_security_output to an empty
  string and then applies the normal logic.
  
  PR:		conf/178611

Modified:
  stable/9/etc/periodic/daily/450.status-security
Directory Properties:
  stable/9/etc/   (props changed)

Modified: stable/9/etc/periodic/daily/450.status-security
==============================================================================
--- stable/9/etc/periodic/daily/450.status-security	Fri Jun 28 18:07:41 2013	(r252349)
+++ stable/9/etc/periodic/daily/450.status-security	Fri Jun 28 18:25:04 2013	(r252350)
@@ -18,19 +18,19 @@ case "$daily_status_security_enable" in
 
 	case "$daily_status_security_inline" in
 	    [Yy][Ee][Ss])
-		export security_output="";;
+		daily_status_security_output="";;
+	esac
+
+	export security_output="${daily_status_security_output}"
+	case "${daily_status_security_output}" in
+	    "")
+		rc=3;;
+	    /*)
+		echo "    (output logged separately)"
+		rc=0;;
 	    *)
-		export security_output="${daily_status_security_output}"
-		case "${daily_status_security_output}" in
-		    "")
-			rc=3;;
-		    /*)
-			echo "    (output logged separately)"
-			rc=0;;
-		    *)
-			echo "    (output mailed separately)"
-			rc=0;;
-		esac;;
+		echo "    (output mailed separately)"
+		rc=0;;
 	esac
 
 	periodic security || rc=3;;


More information about the svn-src-stable-9 mailing list