[anjuta] pm: bgo #626690 - wrong project clean on new-project



commit 8c6bd4095388c9150f5f42f21026bd852551f804
Author: Sébastien Granjoux <seb sfo free fr>
Date:   Sat Aug 21 20:54:10 2010 +0200

    pm: bgo #626690  - wrong project clean on new-project

 libanjuta/anjuta-launcher.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/libanjuta/anjuta-launcher.c b/libanjuta/anjuta-launcher.c
index eb7fc26..ff448f4 100644
--- a/libanjuta/anjuta-launcher.c
+++ b/libanjuta/anjuta-launcher.c
@@ -1139,7 +1139,8 @@ anjuta_launcher_fork (AnjutaLauncher *launcher, const gchar *dir, gchar *const a
 		/* Set working directory */
 		if (dir != NULL)
 		{
-			chdir (dir);
+			/* Exit if working directory doesn't exist */
+			if (chdir (dir) != 0) _exit(-1);
 		}
 
 		/* Set up environment */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]