RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 985888 - 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: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: cronie
Version: 6.5
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: rc
: ---
Assignee: Marcela Mašláňová
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On: 969761
Blocks: 1890144
TreeView+ depends on / blocked
 
Reported: 2013-07-18 12:44 UTC by Marcela Mašláňová
Modified: 2020-12-11 11:37 UTC (History)
6 users (show)

Fixed In Version: cronie-1.4.4-9.el6
Doc Type: Bug Fix
Doc Text:
Cause: $LANG seeting wasn't properly used by cron. Consequence: Jobs run from crond are not run with the system-wide $LANG setting. Fix: Cron reads setting of $LANG and use it in jobs. Result: $LANG setting is used by cron jobs.
Clone Of: 969761
: 1890144 (view as bug list)
Environment:
Last Closed: 2013-11-21 22:24:50 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2013:1681 0 normal SHIPPED_LIVE cronie bug fix and enhancement update 2013-11-20 21:52:35 UTC

Description Marcela Mašláňová 2013-07-18 12:44:54 UTC
+++ This bug was initially created as a clone of Bug #969761 +++

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.

--- Additional comment from Fedora Update System on 2013-06-11 20:56:37 CEST ---

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

--- Additional comment from Wolfgang Rupprecht on 2013-06-12 01:37:13 CEST ---

Works for me.  thanks!

I added karma.

--- Additional comment from Fedora Update System on 2013-06-12 21:11:22 CEST ---

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).

--- Additional comment from Fedora Update System on 2013-06-14 06:52:33 CEST ---

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.

Comment 5 errata-xmlrpc 2013-11-21 22:24:50 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2013-1681.html


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