]> diplodocus.org Git - nmh/blobdiff - uip/whatnowproc.c
Add -initialtls/-notls flags to msgchk.
[nmh] / uip / whatnowproc.c
index 05dc8ff3f67bcb896d86201a1fe88f224f038304..8fc6ee727e185d628bfc751a48fa4745836c28bf 100644 (file)
@@ -99,8 +99,11 @@ what_now (char *ed, int nedit, int use, char *file, char *altmsg, int dist,
     context_save ();   /* save the context file */
     fflush (stdout);
 
-    if (cwd)
-       chdir (cwd);
+    if (cwd) {
+       if (chdir (cwd) < 0) {
+           advise (cwd, "chdir");
+       }
+    }
 
     /*
      * If the "whatnowproc" is the nmh command "whatnow",