FreeBSD Bugzilla – Attachment 23169 Details for
Bug 39941
/usr/sbin/periodic sends thousands of emails
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 2.43 KB, created by
guolin
on 2002-06-28 01:40:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
guolin
Created:
2002-06-28 01:40:01 UTC
Size:
2.43 KB
patch
obsolete
>*** 46,52 **** > success=YES info=YES badconfig=NO # Defaults when ${run}_* aren't YES/NO > for var in success info badconfig > do >! case $(eval echo "\$${arg##*/}_show_$var") in > [Yy][Ee][Ss]) eval $var=YES;; > [Nn][Oo]) eval $var=NO;; > esac >--- 51,57 ---- > success=YES info=YES badconfig=NO # Defaults when ${run}_* aren't YES/NO > for var in success info badconfig > do >! case $(eval echo "\$${arg_in_conf##*/}_show_$var") in > [Yy][Ee][Ss]) eval $var=YES;; > [Nn][Oo]) eval $var=NO;; > esac >*************** >*** 72,79 **** > processed=0 > for dir in $dirlist > do >! for file in $dir/* > do > if [ -x $file -a ! -d $file ] > then > output=TRUE >--- 77,91 ---- > processed=0 > for dir in $dirlist > do >! for file in $dir/*[^~,] ; ## Ignore *~ and *, scripts > do >+ # Don't run *.{rpmsave,rpmorig,rpmnew,swp} scripts >+ [ "${file%.rpmsave}" != "${file}" ] && continue >+ [ "${file%.rpmorig}" != "${file}" ] && continue >+ [ "${file%.rpmnew}" != "${file}" ] && continue >+ [ "${file%.swp}" != "${file}" ] && continue >+ [ "${file%,v}" != "${file}" ] && continue >+ > if [ -x $file -a ! -d $file ] > then > output=TRUE >*************** >*** 93,106 **** > fi > done > done >! if [ $empty = TRUE ] >! then >! [ $processed = 1 ] && plural= || plural=s >! echo "No output from the $processed file$plural processed" >! else >! echo "" >! echo "-- End of $arg output --" >! fi >! } | eval $pipe > done > rm -f $tmp_output >--- 105,124 ---- > fi > done > done >! ## If there is no output from scripts processed, then we will not sendmail >! #if [ $empty = TRUE ] >! #then >! # [ $processed = 1 ] && plural= || plural=s >! # echo "No output from the $processed file$plural processed" >! #else >! # echo "" >! # echo "-- End of $arg output --" >! #fi >! } > $tmp_email_output >! if [ -s $tmp_email_output ] ; >! then >! cat $tmp_email_output | eval $pipe >! fi > done > rm -f $tmp_output >+ rm -f $tmp_email_output
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 39941
:
23167
|
23168
| 23169