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-Tag: nmh-1_0~198 X-Git-Url: http://git.marmaro.de/?a=commitdiff_plain;h=38efa847bbbb0f0bfaca90d7665bfe21de725f99;p=mmh Properly deal with relative folder names. Problem noted by Jerry Peek --- diff --git a/uip/flist.c b/uip/flist.c index 0e2b161..bced89f 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; } }