public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug localedata/11904] New: locale command does not quote (invalid) locale strings
@ 2010-08-11 20:07 truedfx at gentoo dot org
  2010-08-12 16:06 ` [Bug localedata/11904] " drepper at redhat dot com
  0 siblings, 1 reply; 5+ messages in thread
From: truedfx at gentoo dot org @ 2010-08-11 20:07 UTC (permalink / raw)
  To: glibc-bugs

eval "`locale`" is supposed to be safe. From
<http://www.opengroup.org/onlinepubs/000095399/utilities/locale.html>: "The
<value> and <implied value> shown above shall be properly quoted for possible
later reentry to the shell." glibc's locale command does not do this, and as a
result, if a script does eval "`locale`", it misbehaves badly when someone
figures out to set LANG to ' rm -rf /'.

$ LANG=' rm -rf /' locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG= rm -rf /
LC_CTYPE=" rm -rf /"
LC_NUMERIC=" rm -rf /"
LC_TIME=" rm -rf /"
LC_COLLATE=" rm -rf /"
LC_MONETARY=" rm -rf /"
LC_MESSAGES=" rm -rf /"
LC_PAPER=" rm -rf /"
LC_NAME=" rm -rf /"
LC_ADDRESS=" rm -rf /"
LC_TELEPHONE=" rm -rf /"
LC_MEASUREMENT=" rm -rf /"
LC_IDENTIFICATION=" rm -rf /"
LC_ALL=
$ echo $?
0

-- 
           Summary: locale command does not quote (invalid) locale strings
           Product: glibc
           Version: 2.11
            Status: NEW
          Severity: normal
          Priority: P2
         Component: localedata
        AssignedTo: libc-locales at sources dot redhat dot com
        ReportedBy: truedfx at gentoo dot org
                CC: glibc-bugs at sources dot redhat dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=11904

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug localedata/11904] locale command does not quote (invalid) locale strings
  2010-08-11 20:07 [Bug localedata/11904] New: locale command does not quote (invalid) locale strings truedfx at gentoo dot org
@ 2010-08-12 16:06 ` drepper at redhat dot com
  0 siblings, 0 replies; 5+ messages in thread
From: drepper at redhat dot com @ 2010-08-12 16:06 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From drepper at redhat dot com  2010-08-12 16:06 -------
Fixed in git.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


http://sourceware.org/bugzilla/show_bug.cgi?id=11904

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug localedata/11904] locale command does not quote (invalid) locale strings
       [not found] <bug-11904-131@http.sourceware.org/bugzilla/>
  2014-06-30  8:16 ` fweimer at redhat dot com
  2014-06-30  8:17 ` fweimer at redhat dot com
@ 2014-06-30  8:36 ` fweimer at redhat dot com
  2 siblings, 0 replies; 5+ messages in thread
From: fweimer at redhat dot com @ 2014-06-30  8:36 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=11904

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
              Flags|security-                   |security?

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug localedata/11904] locale command does not quote (invalid) locale strings
       [not found] <bug-11904-131@http.sourceware.org/bugzilla/>
  2014-06-30  8:16 ` fweimer at redhat dot com
@ 2014-06-30  8:17 ` fweimer at redhat dot com
  2014-06-30  8:36 ` fweimer at redhat dot com
  2 siblings, 0 replies; 5+ messages in thread
From: fweimer at redhat dot com @ 2014-06-30  8:17 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=11904

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fweimer at redhat dot com

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug localedata/11904] locale command does not quote (invalid) locale strings
       [not found] <bug-11904-131@http.sourceware.org/bugzilla/>
@ 2014-06-30  8:16 ` fweimer at redhat dot com
  2014-06-30  8:17 ` fweimer at redhat dot com
  2014-06-30  8:36 ` fweimer at redhat dot com
  2 siblings, 0 replies; 5+ messages in thread
From: fweimer at redhat dot com @ 2014-06-30  8:16 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=11904

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
              Flags|                            |security-

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-06-30  8:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-11 20:07 [Bug localedata/11904] New: locale command does not quote (invalid) locale strings truedfx at gentoo dot org
2010-08-12 16:06 ` [Bug localedata/11904] " drepper at redhat dot com
     [not found] <bug-11904-131@http.sourceware.org/bugzilla/>
2014-06-30  8:16 ` fweimer at redhat dot com
2014-06-30  8:17 ` fweimer at redhat dot com
2014-06-30  8:36 ` fweimer at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).