Imported Upstream version 2.5.2p1
[debian/amanda] / oldrecover-src / uparse.y
index 117e6d9cbf5d8ac20b7bf7b3a2691f48640ee2e2..3700981d2e089852066baf5cdedead60a5513f85 100644 (file)
@@ -157,9 +157,7 @@ deletex_path:
 local_command:
        LPWD { char buf[STR_SIZE]; puts(getcwd(buf, sizeof(buf))); }
   |     LCD PATH {
-               if (chdir($2) == -1) {
-                       perror($2);
-               }
+               local_cd($2);
                amfree($2);
        }
   ;