]> diplodocus.org Git - nmh/blobdiff - uip/rmf.c
Fix typo in man page
[nmh] / uip / rmf.c
index 765ec9e..c7e6426 100644 (file)
--- a/uip/rmf.c
+++ b/uip/rmf.c
@@ -179,7 +179,7 @@ rmf (char *folder)
                others++;
                continue;
        }
-       if (unlink (dp->d_name) == NOTOK) {
+       if (m_unlink (dp->d_name) == NOTOK) {
            admonish (dp->d_name, "unable to unlink %s:", folder);
            others++;
        }
@@ -193,7 +193,9 @@ rmf (char *folder)
      */
     rma (folder);
 
-    chdir ("..");
+    if (chdir ("..") < 0) {
+       advise ("..", "chdir");
+    }
     if (others == 0 && remdir (maildir))
        return OK;