Re: How to access user-env from binfmt-module?

Brion Vibber (brion@pobox.com)
Tue, 30 Jun 1998 15:06:24 -0700


Brian Schau wrote:
[snip]
> But how do I access the user-environment from the binfmt-module? I feel
> there's something elementary I've overlooked, even though I've been
> cruising/surfing the kernel-source & KHG for the past 4 hours ...
>
> Would some kind sould please come to my rescue before my head explodes?

An exploded head can be messy indeed, I'll do my best to help you avoid
that... I'd use a wrapper shell script that looks at the environment var
and takes the appropriate action, then have the binfmt module configured
to run the script.

I just tried it; it seems to work with the binfmt_misc in 2.1.107 for
setting Wine's command-line options for running Windows executables. Now
I just need to get Wine itself working again! ;)

-- brion vibber (brion@pobox.com)

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu