Properly deal with relative folder names. Problem noted by Jerry Peek
authorDan Harkless <dan@harkless.org>
Thu, 13 May 1999 01:03:23 +0000 (01:03 +0000)
committerDan Harkless <dan@harkless.org>
Thu, 13 May 1999 01:03:23 +0000 (01:03 +0000)
<jpeek@jpeek.com>

uip/flist.c

index 0e2b161..bced89f 100644 (file)
@@ -232,9 +232,11 @@ main(int argc, char **argv)
                        (size_t) (maxfolders * sizeof(*foldersToDo)))))
                    adios (NULL, "unable to reallocate folder name storage");
            }
-           if (*cp == '+')
-               ++cp;
-           foldersToDo[numfolders++] = cp;
+           if (*cp == '+' || *cp == '@') {
+               foldersToDo[numfolders++] =
+                   path (cp + 1, *cp == '+' ? TFOLDER : TSUBCWF);
+           } else
+               foldersToDo[numfolders++] = cp;
        }
     }