From: Dan Harkless Date: Thu, 13 May 1999 01:03:23 +0000 (+0000) Subject: Properly deal with relative folder names. Problem noted by Jerry Peek X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/38efa847bbbb0f0bfaca90d7665bfe21de725f99?ds=sidebyside Properly deal with relative folder names. Problem noted by Jerry Peek --- diff --git a/uip/flist.c b/uip/flist.c index 0e2b1614..bced89fd 100644 --- a/uip/flist.c +++ b/uip/flist.c @@ -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; } }