Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: /bin/sh is spawned - wtf?!?!?



On 28/03/2008, Atom Smasher <atom@xxxxxxxxxxx> wrote:
> On Fri, 28 Mar 2008, Mikael Magnusson wrote:
>
>  > If you're worried about security, you probably shouldn't try to execute
>  > files without looking at them first. Note that it says 'not in
>  > executable format', and not 'does not have the executable permission bit
>  > set'.
>
> ===============
>
>  i get that, but i'd still like to have an option that would require me to
>  do something like this if i want to run it:
>     % sh file

I don't see how the file is more secure by having '#!/bin/sh' at the
top if you still don't look at what it does... Or do you mean you have
random text files with the executable bit set that you don't want to
execute by accident? If so you probably shouldn't have them in your
$path.

-- 
Mikael Magnusson



Messages sorted by: Reverse Date, Date, Thread, Author