rem: if (getcwd(cwd, sizeof cwd) == NULL) { fprintf (stderr, "Fatal error: Could not get the current " "directory.\n");
add: else {  loc = findFileInDirs (&contentDirName, 1, testFile); } if (loc == NULL) { fprintf (stderr, "Fatal error: Could not find content.\n");
context: prepareContentDir (const char *contentDirName, const char **addons){	const char *testfile = "version";	char cwd[PATH_MAX];	if (!fileExists (testfile))	{		if ((chdir (contentDirName) || !fileExists (testfile)) &&				(chdir ("content") || !fileExists (testfile)) &&				(chdir ("../../content") || !fileExists (testfile))) {			fprintf (stderr, "Fatal error: content not available, running from wrong dir?\n");			exit (EXIT_FAILURE);		}	}	if (getcwd(cwd, sizeof cwd) == NULL) {		fprintf (stderr, "Fatal error: Could not get the current "				"directory.\n");		exit (EXIT_FAILURE);	}	mountContentDir (repository, cwd, addons);}