Page MenuHomeFreeBSD

D61435.1794496859.diff
No OneTemporary

Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None

D61435.1794496859.diff

diff --git a/usr.sbin/periodic/periodic.8 b/usr.sbin/periodic/periodic.8
--- a/usr.sbin/periodic/periodic.8
+++ b/usr.sbin/periodic/periodic.8
@@ -22,7 +22,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd June 18, 2020
+.Dd November 11, 2026
.Dt PERIODIC 8
.Os
.Sh NAME
@@ -139,7 +139,8 @@
If
.Ao Ar basedir Ac Ns Va _show_empty_output
is set to
-.Dq Li NO ,
+.Dq Li NO
+(the default),
then no mail will be sent if the output was empty.
.Pp
If
diff --git a/usr.sbin/periodic/periodic.sh b/usr.sbin/periodic/periodic.sh
--- a/usr.sbin/periodic/periodic.sh
+++ b/usr.sbin/periodic/periodic.sh
@@ -98,7 +98,7 @@
# set, assume the user didn't really want us to muck with it (it's a
# README file or has been disabled).
-success=YES info=YES badconfig=NO empty_output=YES # Defaults when ${run}_* aren't YES/NO
+success=YES info=YES badconfig=NO empty_output=NO # Defaults when ${run}_* aren't YES/NO
for var in success info badconfig empty_output; do
case $(eval echo "\$${arg##*/}_show_$var") in
[Yy][Ee][Ss]) eval $var=YES;;
@@ -144,7 +144,7 @@
done
done
if [ $empty = TRUE ]; then
- if [ $empty_output = TRUE ]; then
+ if [ $empty_output = YES ]; then
[ $processed = 1 ] && plural= || plural=s
echo "No output from the $processed file$plural processed"
fi

File Metadata

Mime Type
text/plain
Expires
Thu, Nov 12, 3:20 PM (6 h, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41678011
Default Alt Text
D61435.1794496859.diff (1 KB)

Event Timeline