- fixed a minor problem I introduced in macos X specific code

This commit is contained in:
Bryce Denney 2001-10-09 03:21:48 +00:00
parent 2d929ad4dc
commit 2d976fb371

View File

@ -1,5 +1,5 @@
/////////////////////////////////////////////////////////////////////////
// $Id: main.cc,v 1.75 2001-10-08 02:02:47 bdenney Exp $
// $Id: main.cc,v 1.76 2001-10-09 03:21:48 bdenney Exp $
/////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2001 MandrakeSoft S.A.
@ -749,12 +749,13 @@ static void setupWorkingDirectory (char *path)
c--;
*c = '\0'; /* cut off last part (binary name) */
/* chdir to the binary app's parent */
int n = chdir (parentdir);
if (n) BX_PANIC (("failed to change dir to parent"));
/* chdir to the .app's parent */
int n = chdir ("../../../");
/* chdir to the binary app's parent */
int n;
n = chdir (parentdir);
if (n) BX_PANIC (("failed to change dir to parent"));
/* chdir to the .app's parent */
n = chdir ("../../../");
if (n) BX_PANIC (("failed to change to ../../.."));
}
#endif