summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorMasafumi Max NAKANE <max@FreeBSD.org>1997-01-07 10:12:53 +0000
committerMasafumi Max NAKANE <max@FreeBSD.org>1997-01-07 10:12:53 +0000
commit28e0ad9b9241dd25a8e86d05bba2e46787e28d46 (patch)
tree780ebea42ec48379f0e763590be62d90d62d31f4 /mail
parentDue to hardcoded wrong utmp location, lib/mh/rcvtty didn't work. (diff)
The routine m_atoi in libmh handled filename like [0-9]+~ as regular mail
file, where it should only treat [0-9]+. This bug was present when mh's configuration contains locale definition. Submitted by: Dave Marquardt <marquard@Zilker.NET> (Closing PR #2088.)
Notes
Notes: svn path=/head/; revision=5250
Diffstat (limited to 'mail')
-rw-r--r--mail/mh/files/patch-ag12
1 files changed, 12 insertions, 0 deletions
diff --git a/mail/mh/files/patch-ag b/mail/mh/files/patch-ag
new file mode 100644
index 000000000000..519cd0ebbc28
--- /dev/null
+++ b/mail/mh/files/patch-ag
@@ -0,0 +1,12 @@
+--- sbr/m_atoi.c.orig Wed Dec 1 13:01:23 1993
++++ sbr/m_atoi.c Tue Jan 7 18:53:15 1997
+@@ -19,6 +19,9 @@
+ i *= 10;
+ i += *cp++ - '0';
+ }
++ if (*cp) { /* non-digit ended string -- return 0. */
++ return 0;
++ }
+ #else
+ while (*cp) {
+ if (*cp < '0' || *cp > '9')