bug-bash
[Top][All Lists]
Advanced

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

Re: envvar's leaking into open()


From: devzero
Subject: Re: envvar's leaking into open()
Date: Tue, 25 Nov 2008 17:29:53 +0100

i forgot to tell that it doesn`t happen with every locale.

you have to set it like this to reproduce:

vmhost:/usr/src/packages/SOURCES/bash-3.2 # locale
LANG=
LC_CTYPE=de_DE.UTF-8
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=


> -----Urspr√ľngliche Nachricht-----
> Von: <address@hidden>
> Gesendet: 25.11.08 17:25:35
> An: address@hidden
> Betreff: envvar's leaking into open()


> hello, 
> 
> i made some observation by chance.
> 
> bash 3.2 seems to leak environment variables into open() syscalls (older bash 
> 2.0 does not show this behaviour)
> 
> this may not be an issue here or do not any harm - but at least opening such 
> non-existing files is nonsense and it really looks like a bug to me.
> 
> regards
> roland
> 
> vmhost:/usr/src/packages/SOURCES/bash-3.2 # strace -f ./bash 2>&1 |grep 
> LC_|head
> open("/usr/lib/locale/de_DE.UTF-8/LC_CTYPE", O_RDONLY) = -1 ENOENT (No such 
> file or directory)
> open("/usr/lib/locale/de_DE.utf8/LC_CTYPE", O_RDONLY) = 3
> open("/usr/lib/locale/LC_CTYPE=de_DE.UTF-8;LC_NUMERIC=C;LC_TIME=C;LC_COLLATE=C;LC_MONETARY=C;LC_MESSAGES=C;LC_PAPER=C;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=C;LC_IDENTIFICATION=C/LC_COLLATE",
>  O_RDONLY) = -1 ENOENT (No such file or directory)
> open("/usr/lib/locale/LC_CTYPE=de_DE.utf8lcnumericclctimeclccollateclcmonetaryclcmessagesclcpaperclcnameclcaddressclctelephoneclcmeasurementclcidentificationc/LC_COLLATE",
>  O_RDONLY) = -1 ENOENT (No such file or directory)
> open("/usr/lib/locale/LC_CTYPE=de_DE/LC_COLLATE", O_RDONLY) = -1 ENOENT (No 
> such file or directory)
> open("/usr/lib/locale/LC.UTF-8;LC_NUMERIC=C;LC_TIME=C;LC_COLLATE=C;LC_MONETARY=C;LC_MESSAGES=C;LC_PAPER=C;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=C;LC_IDENTIFICATION=C/LC_COLLATE",
>  O_RDONLY) = -1 ENOENT (No such file or directory)
> open("/usr/lib/locale/LC.utf8lcnumericclctimeclccollateclcmonetaryclcmessagesclcpaperclcnameclcaddressclctelephoneclcmeasurementclcidentificationc/LC_COLLATE",
>  O_RDONLY) = -1 ENOENT (No such file or directory)
> open("/usr/lib/locale/LC/LC_COLLATE", O_RDONLY) = -1 ENOENT (No such file or 
> directory)
> open("/usr/lib/locale/LC_CTYPE=de_DE.UTF-8;LC_NUMERIC=C;LC_TIME=C;LC_COLLATE=C;LC_MONETARY=C;LC_MESSAGES=C;LC_PAPER=C;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=C;LC_IDENTIFICATION=C/LC_MESSAGES",
>  O_RDONLY) = -1 ENOENT (No such file or directory)
> open("/usr/lib/locale/LC_CTYPE=de_DE.utf8lcnumericclctimeclccollateclcmonetaryclcmessagesclcpaperclcnameclcaddressclctelephoneclcmeasurementclcidentificationc/LC_MESSAGES",
>  O_RDONLY) = -1 ENOENT (No such file or directory)
> 
> 


____________________________________________________________________
Psssst! Schon vom neuen WEB.DE MultiMessenger gehört? 
Der kann`s mit allen: http://www.produkte.web.de/messenger/?did=3123





reply via email to

[Prev in Thread] Current Thread [Next in Thread]