Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#18338 - [dcron] Don't set LOGNAME env variable
Attached to Project:
Arch Linux
Opened by Michael Trunner (trunneml) - Monday, 15 February 2010, 10:29 GMT
Last edited by Paul Mattal (paul) - Tuesday, 02 March 2010, 11:58 GMT
Opened by Michael Trunner (trunneml) - Monday, 15 February 2010, 10:29 GMT
Last edited by Paul Mattal (paul) - Tuesday, 02 March 2010, 11:58 GMT
|
DetailsDescription:
The most standard cron daemons under Unix for example Solaris and hpux, setting the env field LOGNAME to the user under the cronjob is running. From the HPUX manpage: "cron supplies a default environment for every shell, defining: HOME=user's-home-directory LOGNAME=user's-login-id PATH=/usr/bin:/usr/sbin:. SHELL=/usr/bin/sh" solaris 10: "Users who desire to have their .profile executed must explicitly do so in the crontab file. cron supplies a default environment for every shell, defining HOME, LOGNAME, SHELL(=/bin/sh), TZ, and PATH." Same does Vixie Cron. dcron should do the same to not break some programs that need the LOGNAME. If added a patch that sets the LOGNAME environment variable and fixes the manpage. Additional info: * dcron 4.4 Steps to reproduce: * read the dcron manpage :-) |
This task depends upon
Closed by Paul Mattal (paul)
Tuesday, 02 March 2010, 11:58 GMT
Reason for closing: Fixed
Additional comments about closing: This is in dcron 4.4-2.
Tuesday, 02 March 2010, 11:58 GMT
Reason for closing: Fixed
Additional comments about closing: This is in dcron 4.4-2.
logname.patch
Jim may also add this functionality upstream, but that's not certain yet.