On Sun, 2 Apr 2006, Mattia Dongili wrote:
> some time ago it's been proposed to let uml_net live in /usr/lib/uml to
> comply the FHS (I have version 2.3 at hand):
> 
>   /usr/lib includes object files, libraries, and internal binaries that
>   are not intended to be executed directly by users or shell scripts.
> 
> see chapter 4.7.1
> The attached patch implements it and keeps backward compatibility.
> It's kind of brutal because putenv will wipe any user-defined PATH, if
> this is a problem I can provide an improved patch that appends
> /usr/lib/uml to the existing PATH. Is this the way to go?
> 
> Signed-off-by: Mattia Dongili <[EMAIL PROTECTED]>

> --- a/arch/um/os-Linux/helper.c       2006-04-02 16:32:38.340801686 +0200
> +++ b/arch/um/os-Linux/helper.c       2006-04-02 16:34:13.454745936 +0200
> @@ -22,6 +22,9 @@ struct helper_data {
>       int fd;
>  };
>  
> +/* PATH variable to find uml helpers  installed in FHS compliant locations */
> +static char *alt_path = "PATH=:/bin:/usr/bin:/usr/lib/uml"; 
                                 ^
Woops, this puts the current directory first in your path, which is probably
not what you want (Never bitten by people leaving evil `ls' variants in /tmp?).

Gr{oetje,eeting}s,

                                                Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [EMAIL PROTECTED]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                                            -- Linus Torvalds


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

Reply via email to