Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 243431 | Differences between
and this patch

Collapse All | Expand All

(-)src-native-new/src/agentController/AgentController.c (-2 / +12 lines)
Lines 351-357 Link Here
351
	int i; /* For loop counter */
351
	int i; /* For loop counter */
352
	FILE *serviceConfigFile;
352
	FILE *serviceConfigFile;
353
	char * FILESEP = NULL, iacConfigFilePath[2048];
353
	char * FILESEP = NULL, iacConfigFilePath[2048];
354
	
354
	char *temConfigDir;
355
355
	for(i = 1; i < argc; i++) {
356
	for(i = 1; i < argc; i++) {
356
		char *arg;
357
		char *arg;
357
358
Lines 393-399 Link Here
393
			#else
394
			#else
394
				FILESEP = "/";
395
				FILESEP = "/";
395
			#endif
396
			#endif
396
			sprintf(iacConfigFilePath, "%s%sserviceconfig.xml", argv[i+1], FILESEP);
397
				
398
			//bug 243431, remove the "" around the argument
399
			if(argv[i+1][0] == '\"' && argv[i+1][strlen(argv[i+1])-1] == '\"'){
400
				temConfigDir = argv[i+1];
401
				temConfigDir++;
402
				temConfigDir[strlen(temConfigDir)-1] = '\0';
403
			}else{
404
				temConfigDir = argv[i+1];
405
			}
406
			sprintf(iacConfigFilePath, "%s%sserviceconfig.xml", temConfigDir, FILESEP);
397
			
407
			
398
			serviceConfigFile = fopen(iacConfigFilePath,"r");
408
			serviceConfigFile = fopen(iacConfigFilePath,"r");
399
			
409
			

Return to bug 243431