Bug 89390
Summary: | problems with crontab and emacs if $TMP is set | ||||||
---|---|---|---|---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | pjohan | ||||
Component: | emacs | Assignee: | Jens Petersen <petersen> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Brock Organ <borgan> | ||||
Severity: | low | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 9 | CC: | menthos | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2005-02-18 05:29:06 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
pjohan
2003-04-22 19:24:18 UTC
Perusing the vixie-cron source doesn't suggest that it supports using TMP at all. ICBW but at first glance it looks hardcoded to /tmp to me. Do you get any different with "EDITOR=vi"? With EDITOR=vi it works fine. I only get the problem with emacs, not with vi or pico so it might be an error in emacs. But it seems like emacs does not terminate with an error code (when I made a test it returned a 0) so I don't know why cron doesn't think that the file has been changed. The file gets erased afterwards so vixie-cron apparently reads it but somehow it doesn't think it's updated. Were you able to reproduce following the three steps? Here's what I see with vi: % ls -dl $HOME/tmp drwx------ 12 petersen petersen 4096 4æ 17 09:10 /home/petersen/tmp % EDITOR=vi TMP=$HOME/tmp crontab -e --- ~ ~ : ~ ~ "/tmp/crontab.10884" 1L, 30C --- For you the temp file isn't in "/tmp"? As i wrote under "additional information", the temp-file is actually in /tmp even if you do set $TMP to another value. But still it does not update properly. Have you tried with emacs? As far as I know it's only the emacs- crontab-$TMP combination that doesn't work so testing with vi(or pico) will not give any problems Thanks for the clarification - I thought the complaint was that TMP was being ignored. Yep, reproduced. Looks like you're right and it is related to the exit status of emacs. Created attachment 91271 [details]
Diff of straces with and without TMP set
I don't seem able to reproduce the non-zero exit code though by invoking from the commandline though. When just invoking emacs I mean. Ok, when I tried I got a normal exit code from emacs but maybe I missed something in how it's invoked from crontab. Should it be declassified as an emacs bug? Not sure, it could be a vixie-cron bug, but I am the package maintainer of that too, so we can just leave it here for now I guess. (xemacs seems to be ok with crontab too.) Hmm, I don't need able to reproduce this anymore with current rawhide (FC3 test releases). Could you try to test it with that? Closing for now. |