--- do.c.orig	2005-04-25 17:03:55.000000000 -0400
+++ do.c	2005-04-25 17:06:04.000000000 -0400
@@ -2229,35 +2229,41 @@
 { struct Edit *ptr;
   struct stat statbuf;
 
+char ebuff[CF_EXPANDSIZE];
+ebuff[0] = '\0';
+
 Debug("Editfiles()\n");
   
 for (ptr=VEDITLIST; ptr!=NULL; ptr=ptr->next)
    {
+
+   ExpandVarstring(ptr->fname, ebuff, NULL);
+
    if (ptr->done == 'y' || strcmp(ptr->scope,CONTEXTID))
       {
       continue;
       }
 
-   if (strncmp(ptr->fname,"home",4) == 0)
+   if (strncmp(ebuff,"home",4) == 0)
       {
       DoEditHomeFiles(ptr);
       }
    else
       {
-      if (lstat(ptr->fname,&statbuf) != -1)
+      if (lstat(ebuff,&statbuf) != -1)
          {
          if (S_ISDIR(statbuf.st_mode))
             {
-            DoRecursiveEditFiles(ptr->fname,ptr->recurse,ptr,&statbuf);
+            DoRecursiveEditFiles(ebuff,ptr->recurse,ptr,&statbuf);
             }
          else
             {
-            WrapDoEditFile(ptr,ptr->fname);       
+            WrapDoEditFile(ptr,ebuff);       
             }
          }
       else
          {
-         DoEditFile(ptr,ptr->fname);  
+         DoEditFile(ptr,ebuff);  
          }
       }
    }
