Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 690136 | Differences between
and this patch

Collapse All | Expand All

(-)a/src/pch.c (-5 / +2 lines)
Lines 2459-2467 do_ed_script (char const *inname, char const *outname, Link Here
2459
	    *outname_needs_removal = true;
2459
	    *outname_needs_removal = true;
2460
	    copy_file (inname, outname, 0, exclusive, instat.st_mode, true);
2460
	    copy_file (inname, outname, 0, exclusive, instat.st_mode, true);
2461
	  }
2461
	  }
2462
	sprintf (buf, "%s %s%s", editor_program,
2463
		 verbosity == VERBOSE ? "" : "- ",
2464
		 outname);
2465
	fflush (stdout);
2462
	fflush (stdout);
2466
2463
2467
	pid = fork();
2464
	pid = fork();
Lines 2470-2476 do_ed_script (char const *inname, char const *outname, Link Here
2470
	else if (pid == 0)
2467
	else if (pid == 0)
2471
	  {
2468
	  {
2472
	    dup2 (tmpfd, 0);
2469
	    dup2 (tmpfd, 0);
2473
	    execl ("/bin/sh", "sh", "-c", buf, (char *) 0);
2470
	    assert (outname[0] != '!' && outname[0] != '-');
2471
	    execlp (editor_program, editor_program, "-", outname, (char  *) NULL);
2474
	    _exit (2);
2472
	    _exit (2);
2475
	  }
2473
	  }
2476
	else
2474
	else
2477
- 

Return to bug 690136