[lkml]   [1996]   [Nov]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subject2.1.12: #!-scripts do not work as before


scripts starting with #! and
supplying a path to an interpreter as well as a parameter, for example

#!/usr/bin/X11/wishx -f

are no longer executable, the interpreter cannot be found.
This seems to be in linux/fs/binfmt_script.c,
where line 44: strcpy (interp, cp);
copies the rest of the line as the interpreter name, before the
code following this looks for possible white space after
the interpreter name. Furthermore the change

- if (!cp || *cp == '\0')
+ if (cp == '\0')

looks suspicious, at least a '*' seems to be missing.


work: | home:
Any opinions expressed herein are not necessarily those of my employer.
Use of my addresses for unsolicited commercial advertising is forbidden.

 \ /
  Last update: 2005-03-22 13:38    [W:0.020 / U:0.904 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site