* spawn.cc (av::setup): Eat trailing whitespace on #! script.
This commit is contained in:
parent
b0aa67c40e
commit
d8b41bc3d0
@ -1,3 +1,7 @@
|
|||||||
|
2014-05-03 Christopher Faylor <me.cygwin2014@cgf.cx>
|
||||||
|
|
||||||
|
* spawn.cc (av::setup): Eat trailing whitespace on #! script.
|
||||||
|
|
||||||
2014-05-02 Christopher Faylor <me.cygwin2014@cgf.cx>
|
2014-05-02 Christopher Faylor <me.cygwin2014@cgf.cx>
|
||||||
|
|
||||||
* fhandler_dsp.cc (ioctl): Use _ioctl for recursive call.
|
* fhandler_dsp.cc (ioctl): Use _ioctl for recursive call.
|
||||||
|
@ -1169,6 +1169,8 @@ av::setup (const char *prog_arg, path_conv& real_path, const char *ext,
|
|||||||
{
|
{
|
||||||
ptr += strspn (ptr, " \t");
|
ptr += strspn (ptr, " \t");
|
||||||
size_t len = strcspn (ptr, "\r\n");
|
size_t len = strcspn (ptr, "\r\n");
|
||||||
|
while (ptr[len - 1] == ' ' || ptr[len - 1] == '\t')
|
||||||
|
len--;
|
||||||
if (len)
|
if (len)
|
||||||
{
|
{
|
||||||
char *namebuf = (char *) alloca (len + 1);
|
char *namebuf = (char *) alloca (len + 1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user