]> diplodocus.org Git - nmh/blobdiff - uip/install-mh.c
Reworked charstring_buffer_copy() to not use strdup() so that
[nmh] / uip / install-mh.c
index 12377352a8c71ea6c4ca5fc824602d938fc4d0f2..2240f870d226da6c2a8e942fb8e010bc113cb778 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))