Bug 969761 - cronie drops $LANG and never passes it on to jobs run
Summary: cronie drops $LANG and never passes it on to jobs run
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: cronie
Version: 19
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Marcela Mašláňová
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 985888 1890144
TreeView+ depends on / blocked
 
Reported: 2013-06-02 08:56 UTC by Wolfgang Rupprecht
Modified: 2020-10-21 14:09 UTC (History)
3 users (show)

Fixed In Version: cronie-1.4.10-5.fc19
Clone Of:
: 985888 (view as bug list)
Environment:
Last Closed: 2013-06-14 04:52:33 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Wolfgang Rupprecht 2013-06-02 08:56:06 UTC
Description of problem:

Jobs run from crond are not run with the system-wide $LANG setting.  This results in mail sent by cron being slightly mangled with the wrong content type encoding.  This affects any mail that mentions the release name Schrödinger such as mail sent from rkhunter.

Version-Release number of selected component (if applicable):

cronie.x86_64              1.4.10-4.fc19

How reproducible:
always

Steps to Reproduce:
1. echo $LANG
2. run env from crontab
   crontab -e
add: 
* * * * * /usr/bin/env
3. wait for the mail from cron

Actual results:
No LANG= reported  

Expected results:
LANG= reported and the same as the LANG= setting in /etc/locale.conf

Additional info:

running the env command from a systend started service does confirm that systemd passes that $LANG variable into a service's initial environment.  Crond just drops it.

Comment 1 Fedora Update System 2013-06-11 18:56:37 UTC
cronie-1.4.10-5.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/cronie-1.4.10-5.fc19

Comment 2 Wolfgang Rupprecht 2013-06-11 23:37:13 UTC
Works for me.  thanks!

I added karma.

Comment 3 Fedora Update System 2013-06-12 19:11:22 UTC
Package cronie-1.4.10-5.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing cronie-1.4.10-5.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-10687/cronie-1.4.10-5.fc19
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2013-06-14 04:52:33 UTC
cronie-1.4.10-5.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.