X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=recover-src%2Fuparse.y;h=6be3562f6914ca8504aebfe9686854bcfd59aeaa;hb=d3b2175e084f88c8736ad7073eacbf4670147aec;hp=35d6d3e43162221058007dcfc3fd8f7a8b617248;hpb=34197d9f46a5f4e944378cbb65fca32ee0eec7b9;p=debian%2Famanda diff --git a/recover-src/uparse.y b/recover-src/uparse.y index 35d6d3e..6be3562 100644 --- a/recover-src/uparse.y +++ b/recover-src/uparse.y @@ -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); } ;