source: trunk/essentials/sys-apps/gawk/README_d/README.tests

Last change on this file was 3076, checked in by bird, 18 years ago

gawk 3.1.5

File size: 1.3 KB
Line 
1Date: Sat, 22 Apr 2000 06:07:06 -0600 (MDT)
2From: "Nelson H. F. Beebe" <beebe@math.utah.edu>
3To: arnold@gnu.org
4Cc: beebe@math.utah.edu, sysstaff@math.utah.edu, othmer@math.utah.edu
5Subject: gawk-3.0.4 and a GNU/Linux gotcha
6
7Yesterday, I was assisting a colleague install some software on his
8GNU/Linux machine for which uname -r reports 2.2.14.
9
10A (mis)feature of this system, which I've never encountered before,
11broke the build of one of my programs, and also of gawk-3.0.4.
12
13Namely, the kernel will not execute anything that resides in /tmp,
14though it will if the same script is in /usr/tmp!
15
16% cat /tmp/foo.sh
17#! /bin/sh
18echo hello
19
20ls -l /tmp/foo.sh
21-rwxr-xr-x 1 othmer math 22 Apr 21 10:34 /tmp/foo.sh*
22
23% /tmp/foo.sh
24bash: /tmp/foo.sh: Permission denied
25
26% cp /tmp/foo.sh /usr/tmp
27
28% /usr/tmp/foo.sh
29hello
30
31Thus, programs that do a temporary install in /tmp, as some of mine do
32in order to run the validation suite, will fail.
33
34gawk-3.0.4, and likely other gawk versions, hits this problem too. It
35fails because test/poundbang starts with
36
37#! /tmp/gawk -f
38
39I tracked down where it comes from:
40
41% grep /tmp /etc/fstab
42/dev/hda3 /tmp ext2 rw,nosuid,noexec,nouser,auto,async,nodev 1 1
43 !!!!!!
44
45Since this is done via a mount command, potentially ANY directory tree
46could be mounted with noexec.
Note: See TracBrowser for help on using the repository browser.