On 2000-06-21 10:49:57 -0400, Mike Markowski wrote:
> Notice that I now must put *two* slashes after "~mm". With only a
> single slash, I get this:
[...]
> It seems to swallow the first slash.
Please try the attached patch.
Index: muttlib.c
===================================================================
RCS file: /home/roessler/cvsroot/mutt/muttlib.c,v
retrieving revision 2.23
diff -u -r2.23 muttlib.c
--- muttlib.c 2000/06/21 09:55:24 2.23
+++ muttlib.c 2000/06/21 15:17:56
@@ -329,11 +329,15 @@
struct passwd *pw;
if ((t = strchr (s + 1, '/')))
*t = 0;
+
if ((pw = getpwnam (s + 1)))
{
strfcpy (p, pw->pw_dir, sizeof (p));
if (t)
- tail = t + 1;
+ {
+ *t = '/';
+ tail = t;
+ }
else
tail = "";
}