[Pkg-shadow-devel] [pkg-shadow-Bugs][313082] the locale environment was not set correctly with su.

pkg-shadow-bugs at alioth.debian.org pkg-shadow-bugs at alioth.debian.org
Thu Apr 14 07:37:40 UTC 2011


Bugs item #313082, was changed at 2011-04-12 19:42 by Dimitris Tzemos
You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=411478&aid=313082&group_id=30580

Status: Open
Priority: 3
Submitted By: Dimitris Tzemos (djemos-guest)
Assigned to: Nobody (None)
Summary: the locale environment was not set correctly with su. 
Category: None
Group: None
Resolution: None


Initial Comment:
I have a problem with the command "su". When you log into the session
 "root"
 locale is English. If you use the command "su -", then everything
 works fine.

 So I patched the shadow Slackware package for fixing a bug where the
 environment was not set correctly with su.

More details:
I use greek locale (el_GR.UTF-8) environment and in kde everything is in
 greek program menus etc.

 Then i write kdesu kwrite some_file.txt and kwrite menus are in english.
 Same for all programs as gslapt etc which run under su or kdesu
 Same behavior for every locale except english.
 With my patch every user has programs have to run with su to its locale
 menus.
 Thats why i have patched shadow

--- libmisc/env.c 2011-02-13 19:58:11.000000000 +0200
 +++ libmisc/env.c 2011-04-12 13:44:09.838230496 +0300
 @@ -251,7 +251,7 @@
 if (strncmp (*cur, *bad, strlen (*bad)) != 0) {
 continue;
 }
 - if (strchr (*cur, '/') != NULL) {
 + if (strchr (*cur, '/') == NULL) {
 continue; /* OK */
 }
 for (move = cur; NULL != *move; move++) {


----------------------------------------------------------------------

Comment By: Dimitris Tzemos (djemos-guest)
Date: 2011-04-14 07:37

Message:
Sorry for this. In debian != has changed to ==
But in slackware package remains !=
so forget it. This is not a bug. 
sorry again.

----------------------------------------------------------------------

You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=411478&aid=313082&group_id=30580



More information about the Pkg-shadow-devel mailing list