From 6172cbe1c65d2849b3bb929487f252c6cc3dc5f1 Mon Sep 17 00:00:00 2001 From: Eric Schnoebelen Date: Fri, 31 Aug 2012 09:49:37 -0400 Subject: [PATCH] Move chdir() call so -recurse option works again. --- uip/folder.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/uip/folder.c b/uip/folder.c index aea20f4..4f43b9f 100644 --- a/uip/folder.c +++ b/uip/folder.c @@ -341,13 +341,13 @@ main (int argc, char **argv) /* * Scan the folders */ + /* change directory to base of nmh directory for crawl_folders */ + if (chdir (nmhdir) == NOTOK) + adios (nmhdir, "unable to change directory to"); if (all || ftotal > 0) { /* * If no folder is given, do them all */ - /* change directory to base of nmh directory for crawl_folders */ - if (chdir (nmhdir) == NOTOK) - adios (nmhdir, "unable to change directory to"); if (!argfolder) { if (msg) admonish (NULL, "no folder given for message %s", msg); -- 1.7.10.4