https://bugzilla.redhat.com/show_bug.cgi?id=868383
Primary reason to do this is to ensure "-e" works as intended, and is
not ignored because the user set his own LESS variable.
close_pipe(fd);
if (jump_to_end)
close_pipe(fd);
if (jump_to_end)
- setenv("LESS", "FRSXK+G", 0);
+ setenv("LESS", "FRSXK+G", 1);
- setenv("LESS", "FRSXK", 0);
+ setenv("LESS", "FRSXK", 1);
/* Make sure the pager goes away when the parent dies */
if (prctl(PR_SET_PDEATHSIG, SIGTERM) < 0)
/* Make sure the pager goes away when the parent dies */
if (prctl(PR_SET_PDEATHSIG, SIGTERM) < 0)