summaryrefslogtreecommitdiff
path: root/mail/elm
diff options
context:
space:
mode:
authorkim <kim@pkgsrc.org>2000-05-02 17:11:49 +0000
committerkim <kim@pkgsrc.org>2000-05-02 17:11:49 +0000
commitc30f967a07eb41149b5917f9239a3031e7f0d00e (patch)
treeee1e65709ac2df8f1a9c1019bb63e6c7bdfd9e97 /mail/elm
parent1aa6e3c8de67892c55d6dbefb55d32662c443bd4 (diff)
downloadpkgsrc-c30f967a07eb41149b5917f9239a3031e7f0d00e.tar.gz
Fix the & expansion in the gecos field.
Diffstat (limited to 'mail/elm')
-rw-r--r--mail/elm/files/patch-sum3
-rw-r--r--mail/elm/patches/patch-ae35
2 files changed, 37 insertions, 1 deletions
diff --git a/mail/elm/files/patch-sum b/mail/elm/files/patch-sum
index f0c02406b57..21c4036cbdb 100644
--- a/mail/elm/files/patch-sum
+++ b/mail/elm/files/patch-sum
@@ -1,6 +1,7 @@
-$NetBSD: patch-sum,v 1.3 1999/11/18 14:54:50 agc Exp $
+$NetBSD: patch-sum,v 1.4 2000/05/02 17:11:49 kim Exp $
MD5 (patch-aa) = d54d6460531cf84d5845d858ef14ef5c
MD5 (patch-ab) = b20a89a01b99c2bfe5dc21abe15b557a
MD5 (patch-ac) = 9e92f0eba5fcd5b03272e8712195a4d9
MD5 (patch-ad) = 3d90d8158227eeca1c55d918cb2d72d1
+MD5 (patch-ae) = 8fa282d8a5fb7e8934f24b3e00b01570
diff --git a/mail/elm/patches/patch-ae b/mail/elm/patches/patch-ae
new file mode 100644
index 00000000000..16d8ebfd410
--- /dev/null
+++ b/mail/elm/patches/patch-ae
@@ -0,0 +1,35 @@
+$NetBSD: patch-ae,v 1.1 2000/05/02 17:11:49 kim Exp $
+
+--- lib/gcos_name.c.orig Mon Mar 15 01:32:34 1999
++++ lib/gcos_name.c Tue May 2 13:03:14 2000
+@@ -26,20 +26,26 @@
+
+ static char fullname[SLEN];
+ register char *fncp, *gcoscp, *lncp, *end;
++ int first;
+
+
+ /* full name is all chars up to first ',' (or whole gcos, if no ',') */
+- /* replace any & with logname in upper case */
++ /* replace any & with logname capitalized */
+
+ for(fncp = fullname, gcoscp= gcos_field, end = fullname + sizeof fullname - 1;
+ (*gcoscp != ',' && *gcoscp != '\0' && fncp < end);
+ gcoscp++) {
+
+ if(*gcoscp == '&') {
+- for(lncp = logname; *
+- lncp && fncp < end;
++ first = 1;
++ for(lncp = logname;
++ *lncp && fncp < end;
+ fncp++, lncp++)
+- *fncp = toupper(*lncp);
++ if (first) {
++ first = 0;
++ *fncp = toupper(*lncp);
++ } else
++ *fncp = *lncp;
+ } else {
+ *fncp++ = *gcoscp;
+ }