diff options
author | kim <kim@pkgsrc.org> | 2000-05-02 17:29:32 +0000 |
---|---|---|
committer | kim <kim@pkgsrc.org> | 2000-05-02 17:29:32 +0000 |
commit | dcb4b2383d81aa4607be4829cdbc44601b2aea5e (patch) | |
tree | 51f53e8835a19de24fe3a6a2d68634dc69444bbb /mail | |
parent | c30f967a07eb41149b5917f9239a3031e7f0d00e (diff) | |
download | pkgsrc-dcb4b2383d81aa4607be4829cdbc44601b2aea5e.tar.gz |
Fix the & expansion in the gecos field.
Diffstat (limited to 'mail')
-rw-r--r-- | mail/pine/files/patch-sum | 3 | ||||
-rw-r--r-- | mail/pine/patches/patch-ao | 27 |
2 files changed, 29 insertions, 1 deletions
diff --git a/mail/pine/files/patch-sum b/mail/pine/files/patch-sum index 884f7e28729..3544811da22 100644 --- a/mail/pine/files/patch-sum +++ b/mail/pine/files/patch-sum @@ -1,4 +1,4 @@ -$NetBSD: patch-sum,v 1.3 2000/01/04 16:58:50 bouyer Exp $ +$NetBSD: patch-sum,v 1.4 2000/05/02 17:29:32 kim Exp $ MD5 (patch-aa) = cde5388cc742d06c2cbb3c418c03121d MD5 (patch-ab) = aee9be029c8880cb76b34b3203d53045 @@ -7,4 +7,5 @@ MD5 (patch-af) = 250a49244b2c1c7cf8a44cc1aa2e5dae MD5 (patch-ak) = c92a63154ab9a4e02c0d1f38f4ab7dbb MD5 (patch-al) = f8180bea4caf97873f5403d762a64bed MD5 (patch-am) = 9945aa8499ca29930a1ab9b0ec000f0d +MD5 (patch-ao) = bf069e8f6c0e571c26a3f52fe2781b6b MD5 (patch-tabkey) = 918d8281bc5049765f27f7308a83fc47 diff --git a/mail/pine/patches/patch-ao b/mail/pine/patches/patch-ao new file mode 100644 index 00000000000..9f4be20f68e --- /dev/null +++ b/mail/pine/patches/patch-ao @@ -0,0 +1,27 @@ +$NetBSD: patch-ao,v 1.1 2000/05/02 17:29:33 kim Exp $ + +--- pine/osdep/pw_stuff.orig Mon Aug 30 16:23:45 1999 ++++ pine/osdep/pw_stuff Tue May 2 13:19:38 2000 +@@ -12,6 +12,7 @@ + { + static char fullname[MAX_FULLNAME+1]; + 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 */ +@@ -21,8 +22,13 @@ + gcoscp++) { + + if(*gcoscp == '&') { ++ first = 1; + for(lncp = logname; *lncp; fncp++, lncp++) +- *fncp = toupper((unsigned char)(*lncp)); ++ if (first) { ++ first = 0; ++ *fncp = toupper((unsigned char)(*lncp)); ++ } else ++ *fncp = *lncp; + } else { + *fncp++ = *gcoscp; + } |