Thread View: gnu.utils.bug
1 messages
1 total messages
Started by mason
Sat, 31 Oct 1992 12:23
screen3.2(a) tiny patch
Author: mason
Date: Sat, 31 Oct 1992 12:23
Date: Sat, 31 Oct 1992 12:23
32 lines
1739 bytes
1739 bytes
Here's a tiny patch for screen3.2(a). The problem is seen if someone has
the "shell" keyword in their .screenrc . Screen tries to free memory
that it got from a getenv(). sgi/sysv machines don't provide malloc()
memory for this.
*** screen.c Sat Oct 31 01:13:38 1992
--- screen.c.orig Fri Oct 23 12:24:48 1992
***************
*** 766,774 ****
signal(SIGBUS, CoreDump);
signal(SIGSEGV, CoreDump);
}
! if (!ShellProg && (ShellProg = getenv("SHELL")) == 0)
! if ((ShellProg = strdup(DefaultShell)) == NULL)
! abort(); /* ParseSaveStr may try to free ShellProg */
ShellArgs[0] = ShellProg;
#ifdef NETHACK
nethackflag = (getenv("NETHACKOPTIONS") != NULL);
--- 766,773 ----
signal(SIGBUS, CoreDump);
signal(SIGSEGV, CoreDump);
}
! if (!ShellProg && (ShellProg = getenv("SHELL")) == 0)
! ShellProg = DefaultShell;
ShellArgs[0] = ShellProg;
#ifdef NETHACK
nethackflag = (getenv("NETHACKOPTIONS") != NULL);
--
Geoff C. Wing | P.O. Box 4422
mason@phoenix.apana.org.au | Uni. of Melbourne
| Victoria 3052
Hurt...Agony...Pain...LOVE-IT | Australia
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads