]> diplodocus.org Git - nmh/blobdiff - uip/rmm.c
bug #23319: rework the way we handle the working directory when invoking
[nmh] / uip / rmm.c
index 75b1c70e495d1f5cbd3676327348f8cf4f5a01ad..15302896d629f10b393d70e7a6895ce5bc1e7e39 100644 (file)
--- a/uip/rmm.c
+++ b/uip/rmm.c
@@ -77,7 +77,7 @@ main (int argc, char **argv)
            if (folder)
                adios (NULL, "only one folder at a time!");
            else
-               folder = path (cp + 1, *cp == '+' ? TFOLDER : TSUBCWF);
+               folder = pluspath (cp);
        } else
                app_msgarg(&msgs, cp);
     }
@@ -127,5 +127,6 @@ main (int argc, char **argv)
     context_replace (pfolder, folder); /* update current folder   */
     context_save ();                   /* save the context file   */
     folder_free (mp);                  /* free folder structure   */
-    return done (0);
+    done (0);
+    return 1;
 }