Thread View: net.bugs.2bsd
1 messages
1 total messages
Started by Keith Bostic
Fri, 08 Nov 1985 20:45
CSS/Harvard 2.9BSD bug report #13
Author: Keith Bostic
Date: Fri, 08 Nov 1985 20:45
Date: Fri, 08 Nov 1985 20:45
20 lines
1186 bytes
1186 bytes
Subject: Executable shell scripts can crash the system.
Index: sys/sys1.c 2.9BSD
Description:
Kernel doesn't check for more than one level of executable
shell scripts.
Repeat-By:
Execute "see" or any shell program that executes another shell
script.
Fix:
Apply the following diff.
sys1.c.right << >> sys1.c.wrong
75,76c76,77
< goto bad; /* check if script. one level only */
< if (!indir && u.u_exdata.ux_shell[0] == '#' && u.u_exdata.ux_shell[1] == '!') {
---
> goto bad; /* check if script. one level only */
> if (u.u_exdata.ux_shell[0] == '#' && u.u_exdata.ux_shell[1] == '!') {
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