From netch@segfault.kiev.ua  Mon Feb 11 03:02:27 2002
Return-Path: <netch@segfault.kiev.ua>
Received: from segfault.kiev.ua (segfault.kiev.ua [193.193.193.4])
	by hub.freebsd.org (Postfix) with ESMTP id C815437B402
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 11 Feb 2002 03:02:24 -0800 (PST)
Received: (from netch@localhost)
	by segfault.kiev.ua (8) id LQN90716;
	Mon, 11 Feb 2002 11:42:55 +0200 (EET)
	(envelope-from netch)
Message-Id: <200202110942.LQN90716@segfault.kiev.ua>
Date: Mon, 11 Feb 2002 11:42:55 +0200 (EET)
From: netch@netch.kiev.ua (Valentin Nechayev)
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Incorrect rc in /etc/periodic/daily/400.status-disks
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         34825
>Category:       conf
>Synopsis:       Incorrect rc in /etc/periodic/daily/400.status-disks
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 11 03:10:01 PST 2002
>Closed-Date:    Wed Feb 13 11:10:17 PST 2002
>Last-Modified:  Wed Feb 13 11:10:41 PST 2002
>Originator:     Valentin Nechayev
>Release:        FreeBSD 4.3-RELEASE-p24 i386
>Organization:
private
>Environment:
System: FreeBSD segfault.kiev.ua 4.3-RELEASE-p24 FreeBSD 4.3-RELEASE-p24 #0: Mon Jan 28 14:35:45 EET 2002 root@segfault.kiev.ua:/var/obj/sys/sf4 i386
4.4, 4.5 - the same

>Description:

If /etc/periodic/daily/400.status-disks shows disks status, it returns
0, which means silent success.
But for it, rc=1 is correct, which means that some info was put out
and should be printed in daily log.

>How-To-Repeat:

Set daily_show_success=NO and see that no disks status is printed.

>Fix:

--- 400.status-disks.orig	Mon Feb 11 11:39:14 2002
+++ 400.status-disks	Mon Feb 11 11:38:59 2002
@@ -16,7 +16,7 @@
 	echo ""
 	echo "Disk status:"
 
-	df $daily_status_disks_df_flags && rc=0 || rc=3
+	df $daily_status_disks_df_flags && rc=1 || rc=3
 
 	# display which filesystems need backing up
 
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: brian 
State-Changed-When: Wed Feb 13 11:10:17 PST 2002 
State-Changed-Why:  
I've committed this to -current and will MFC in 3 weeks. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=34825 
>Unformatted:
