Re: Broken executable-in-var

Thomas Leonard <[email protected]>
Newsgroups gmane.comp.file-systems.zero-install.devel
Message-ID <CAG4opy85TEj5TO71LbFwRVhvF89y=v-odAHzuHT0YrJMdMO=nA@mail.gmail.com>
On 3 August 2015 at 10:16, Bart van Strien <[email protected]> wrote:
> On 03/08/15 11:05, Thomas Leonard wrote:
>
> Do you have any strange security policies in place (SELinux, etc)?
>
>
> Nothing special, no.
>
> What happens if you run this file directly? (it should run, but
> complain "Environment variable 'zeroinstall_runenv_ZEROINSTALL_GPG'
> not set")
>
>
> At least I found my previous error again, in both zsh and bash:
>
> zsh: ./test.sh: bad interpreter:
> /home/bartbes/.cache/0install.net/implementations/sha256new_YE: no such file
> or directory
> bash: ./test.sh:
> /home/bartbes/.cache/0install.net/implementations/sha256new_YEPNC3CZ7CVC6ZJNS:
> bad interpreter: No such file or directory
> bash3: ./test.sh:
> /home/bartbes/.cache/0install.net/implementations/sha256new_YEPNC3CZ7CVC6ZJNS3:
> bad interpreter: No such file or directory
>
>
> And of course the full path exists. I'm tempted to say this would be in
> execve but then I'd expect the cutoff points to be equal, where they even
> vary for different versions of bash. That said, a simple wrapper executable
> that tries to run it with execve also gets a "No such file or directory"
> error.

What does "strace -e process ./ZEROINSTALL_GPG" show?

Can you run other things in the #! line? "#!/bin/sh" obvious works...
what makes it stop working? Length of path? File-system where the
target lives?


-- 
Dr Thomas Leonard        http://roscidus.com/blog/
GPG: DA98 25AE CAD0 8975 7CDA  BD8E 0713 3F96 CA74 D8BA

------------------------------------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.