Re: [PATCH] [INPUT] Catch attempts to run a directory as a script

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

On Wed, Oct 06, 2010 at 06:18:05AM -0600, Eric Blake wrote:
> Right now, dash gets this wrong:
> dash -c 'exec .'; echo $?
> exec: 1: /: Permission denied
> 2
> And since you already have the code in dash to detect failure to 'exec'  
> a directory, you should be able to reuse that code when detecting  
> failure to run a directory as a script, as in 'dash .'.

Thanks for the detailed investiagtion!

If someone could send me a patch that does this without bloating
dash too much then I can apply it without feeling too much guilt :)

Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page:
PGP Key:
To unsubscribe from this list: send the line "unsubscribe dash" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at

[LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

Powered by Linux