From 38efa847bbbb0f0bfaca90d7665bfe21de725f99 Mon Sep 17 00:00:00 2001 From: Dan Harkless Date: Thu, 13 May 1999 01:03:23 +0000 Subject: [PATCH] Properly deal with relative folder names. Problem noted by Jerry Peek --- uip/flist.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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; } } -- 1.7.10.4