Imported Upstream version 2.6.0
[debian/amanda] / oldrecover-src / uparse.y
index 117e6d9cbf5d8ac20b7bf7b3a2691f48640ee2e2..6166db2a30e1bb7005d2581b5a08d8c27f266ae8 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);
        }
   ;
@@ -179,5 +177,5 @@ void
 yyerror(
     char *     s)
 {
-  printf("%s\n", s);
+  g_printf("%s\n", s);
 }