Imported Upstream version 2.5.2p1
[debian/amanda] / recover-src / uparse.y
index 35d6d3e43162221058007dcfc3fd8f7a8b617248..6be3562f6914ca8504aebfe9686854bcfd59aeaa 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);
        }
   ;