Re: [PATCH] make sure that scripts/tgt-setup-lun is started by the proper shell

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 3 Jul 2010 13:16:56 +0200
Bart Van Assche <bart.vanassche@xxxxxxxxx> wrote:

> There is a small bug in scripts/tgt-setup-lun, which may cause it to be
> started by the wrong interpreter: if the "#!" sequence appears in a shell
> script, this sequence must be at the top of the script.
> 
> A quote from the execl() man page from the The Open Group Base
> Specifications Issue 6
> (http://www.opengroup.org/onlinepubs/009695399/functions/execl.html):
> 
>   Another way that some historical implementations handle shell scripts is
>   by recognizing the first two bytes of the file as the character string "#!"
>   and using the remainder of the first line of the file as the name of the
>   command interpreter to execute.
> 
> Signed-off-by: Bart Van Assche <bart.vanassche@xxxxxxxxx>

Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux SCSI]     [Linux RAID]     [Linux Clusters]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]

  Powered by Linux