Date: Sat, 10 Aug 2002 07:00:10 -0700 (PDT) From: Jon <cykyc@yahoo.com> To: freebsd-bugs@FreeBSD.org Subject: resend Re: fix:Re: conf/41054: Sendmail assumptions in startup scripts may lead to a temporary DoS Message-ID: <200208101400.g7AE0AmS046421@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR conf/41054; it has been noted by GNATS.
From: Jon <cykyc@yahoo.com>
To: cykyc@yahoo.com, freebsd-gnats-submit@FreeBSD.org
Cc:
Subject: resend Re: fix:Re: conf/41054: Sendmail assumptions in startup scripts may lead to a temporary DoS
Date: Sat, 10 Aug 2002 06:51:54 -0700 (PDT)
--0-1272037419-1028987514=:82687
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
sorry about the premature send...
This works to bypass trying to send the user mail for vi recovery
files. Attached is the output in case yahoo mangles the lines.
Jon
--- rc.orig Sat Aug 10 08:11:37 2002
+++ rc Sat Aug 10 08:20:45 2002
@@ -799,10 +799,21 @@
# Delete any recovery files that are zero
length,
# corrupted, or that have no corresponding
backup file.
+ # If sendmail_enable set to NONE, don't
mail.
# Else send mail to the user.
recfile=`awk '/^X-vi-recover-path:/{print
$2}' < "${i}"`
if [ -n "${recfile}" -a -s "${recfile}" ];
then
+
+ case ${sendmail_enable} in
+ [Nn][Oo][Nn][Ee])
+ echo -n ' sendmail disabled.
Recovery sessions
no
+t sent'
+ ;;
+ *)
sendmail -t < "${i}"
+ ;;
+ esac
+
else
rm -f "${i}"
fi
__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com
--0-1272037419-1028987514=:82687
Content-Type: application/octet-stream; name="rc.patch"
Content-Transfer-Encoding: base64
Content-Description: rc.patch
Content-Disposition: attachment; filename="rc.patch"
LS0tIHJjLm9yaWcJU2F0IEF1ZyAxMCAwODoxMTozNyAyMDAyCisrKyByYwlT
YXQgQXVnIDEwIDA4OjIwOjQ1IDIwMDIKQEAgLTc5OSwxMCArNzk5LDIxIEBA
CiAKIAkJCSMgRGVsZXRlIGFueSByZWNvdmVyeSBmaWxlcyB0aGF0IGFyZSB6
ZXJvIGxlbmd0aCwKIAkJCSMgY29ycnVwdGVkLCBvciB0aGF0IGhhdmUgbm8g
Y29ycmVzcG9uZGluZyBiYWNrdXAgZmlsZS4KKwkJCSMgSWYgc2VuZG1haWxf
ZW5hYmxlIHNldCB0byBOT05FLCBkb24ndCBtYWlsLgogCQkJIyBFbHNlIHNl
bmQgbWFpbCB0byB0aGUgdXNlci4KIAkJCXJlY2ZpbGU9YGF3ayAnL15YLXZp
LXJlY292ZXItcGF0aDove3ByaW50ICQyfScgPCAiJHtpfSJgCiAJCQlpZiBb
IC1uICIke3JlY2ZpbGV9IiAtYSAtcyAiJHtyZWNmaWxlfSIgXTsgdGhlbgor
CisgICAgICAgICAgICAgICAgICAgICAgICBjYXNlICR7c2VuZG1haWxfZW5h
YmxlfSBpbgorICAgICAgICAgICAgICAgICAgICAgICAgW05uXVtPb11bTm5d
W0VlXSkKKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZWNobyAt
biAnIHNlbmRtYWlsIGRpc2FibGVkLiBSZWNvdmVyeSBzZXNzaW9ucyBubwor
dCBzZW50JyAKKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgOzsK
KwkJCSopCiAJCQkJc2VuZG1haWwgLXQgPCAiJHtpfSIKKwkJCQk7OworCQkJ
ZXNhYworCiAJCQllbHNlCiAJCQkJcm0gLWYgIiR7aX0iCiAJCQlmaQo=
--0-1272037419-1028987514=:82687--
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200208101400.g7AE0AmS046421>
