View | Details | Raw Unified | Return to bug 71438 | Differences between
and this patch

Collapse All | Expand All

(-)mandata.c (-8 / +8 lines)
Lines 241-251 Link Here
241
	char buffer2[BUFFER_SIZE];
241
	char buffer2[BUFFER_SIZE];
242
	switch ((int)context->get_value("show_mode")) {
242
	switch ((int)context->get_value("show_mode")) {
243
	case 0:
243
	case 0:
244
		sprintf(buffer,"%s -T '%s manual page' -n GMan -e man ",
244
		sprintf(buffer,"%s -T '%s manual page' -n GMan -e man %s",
245
				(char*)context->get_value("xterm_command"),
245
				(char*)context->get_value("xterm_command"),
246
				get_display_name(buffer1));
246
				get_display_name(buffer1), get_display_name(buffer1));
247
		len = strlen(buffer);
247
/*		len = strlen(buffer);
248
		attach(buffer+len,man_path->GetPath(),file_name);
248
		attach(buffer+len,man_path->GetPath(),file_name); */
249
		//g_warning(buffer);
249
		//g_warning(buffer);
250
		if(!fork())
250
		if(!fork())
251
		{
251
		{
Lines 256-264 Link Here
256
		break;
256
		break;
257
	case 1:
257
	case 1:
258
		sprintf(loc_name," ~/.gman.%s.ps ",get_display_name(buffer1));
258
		sprintf(loc_name," ~/.gman.%s.ps ",get_display_name(buffer1));
259
		sprintf(buffer,"man -t ");
259
		sprintf(buffer,"man -t %s", get_display_name(buffer1));
260
		len = strlen(buffer);
260
/*		len = strlen(buffer);
261
		attach(buffer+len,man_path->GetPath(),file_name);
261
		attach(buffer+len,man_path->GetPath(),file_name); */
262
		strcat(buffer," >> ");
262
		strcat(buffer," >> ");
263
		strcat(buffer,loc_name);
263
		strcat(buffer,loc_name);
264
		strcat(buffer," ; ");
264
		strcat(buffer," ; ");
Lines 306-312 Link Here
306
	case 2:
306
	case 2:
307
		sprintf(loc_name," ~/.gman.%s.html ",get_display_name(buffer1));
307
		sprintf(loc_name," ~/.gman.%s.html ",get_display_name(buffer1));
308
		//g_warning(loc_name);
308
		//g_warning(loc_name);
309
		strcpy(buffer,"/usr/lib/cgi-bin/gman.pl ");
309
		strcpy(buffer,"/usr/local/www/cgi-bin/gman.pl ");
310
		strcat(buffer," ");
310
		strcat(buffer," ");
311
		strcat(buffer,get_section_name(buffer2));
311
		strcat(buffer,get_section_name(buffer2));
312
		strcat(buffer," ");
312
		strcat(buffer," ");

Return to bug 71438