From 2b2c27a700a89e5c0f6b534d74b8af381a0db452 Mon Sep 17 00:00:00 2001 From: Angus Leeming Date: Sat, 22 Jan 2005 13:41:47 +0000 Subject: [PATCH] Fix my breakage. Sorry guys. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9524 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/support/ChangeLog | 5 +++++ src/support/path.C | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/support/ChangeLog b/src/support/ChangeLog index 458676285b..6e7e56bc99 100644 --- a/src/support/ChangeLog +++ b/src/support/ChangeLog @@ -1,3 +1,8 @@ +2005-01-22 Angus Leeming + + * path.C (Path): revert the patch since the if statement has side + effects that are needed for the code to work :-( + 2005-01-21 Angus Leeming * os_cygwin.C, os_win32.C: strip the Cygwin-specific stuff out of diff --git a/src/support/path.C b/src/support/path.C index 3290274686..b7db0a299a 100644 --- a/src/support/path.C +++ b/src/support/path.C @@ -28,10 +28,9 @@ Path::Path(string const & path) { if (!path.empty()) { pushedDir_ = getcwd(); -#if 0 + if (pushedDir_.empty() || chdir(path)) /* FIXME: throw */; -#endif } else { popped_ = true; } -- 2.39.5