]> diplodocus.org Git - nmh/blobdiff - uip/install-mh.c
Fix typo in man page
[nmh] / uip / install-mh.c
index 1237735..2240f87 100644 (file)
@@ -166,7 +166,9 @@ query:
        }
     }
 
-    chdir (mypath);
+    if (chdir (mypath) < 0) {
+       advise (mypath, "chdir");
+    }
     if (chdir (pathname) == NOTOK) {
        cp = concat ("\"", pathname, "\" doesn't exist; Create it? ", NULL);
        if (autof || gans (cp, anoyes))