Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 37412 - crontab -e not working when /tmp -> /usr/tmp
crontab -e not working when /tmp -> /usr/tmp
Product: Red Hat Linux
Classification: Retired
Component: vim (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Karsten Hopp
David Lawrence
Depends On:
  Show dependency treegraph
Reported: 2001-04-24 10:17 EDT by Aleksey Nogin
Modified: 2007-04-18 12:32 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2004-10-27 09:10:53 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Aleksey Nogin 2001-04-24 10:17:47 EDT
crontab -e tells me "crontab: no changes made to crontab" no matter what I
do. Except, if I change /tmp to be a directory instead of being a symlink
to /usr/tmp, it starts working fine.

P.S. I believe this is _not_ a duplicate of bug #25992 since RH 7.1 already
has vim-6.0-0.27.
Comment 1 Ed Voncken 2002-02-17 06:19:21 EST
This is a VERY irritating bug, and 100% reproducible on RedHat Linux 7.2 with
all errata applied:

[root@r2d2 /]# rpm -qa |grep "^vi"

/tmp -> ./var/tmp

I've used 'ls -li' to check the /tmp/crontab.<pid> files while editing crontabs,
and VIM definitely writes the file out using a different inode.

This appears to be the source of the problem; changes are ignored since the
changes were saved to a file with a different inode.

This used to work under lower revisions of RedHat.

Comment 2 Michael Wardle 2002-05-08 22:09:53 EDT
I also have /tmp -> /var/tmp and am seeing this issue on a Red Hat 7.2 box,
however setting EDITOR to something other than vi (such as emacs) makes "crontab
-e" work as expected.  Perhaps vi has problems with temporary files on some systems.
Comment 3 Bill Huang 2002-06-03 05:22:10 EDT
It is a bug of vim.
Comment 4 Aleksey Nogin 2002-06-08 01:35:51 EDT
This problem still exists in 7.3
Comment 5 Aleksey Nogin 2002-06-30 02:55:27 EDT
This problem still exists with vim-6.1-4 and vixie-cron-3.0.1-67 from a recent
Comment 6 Paul Dyer 2003-06-03 10:37:47 EDT
This is still a bug with RH AS v2.1.   I have /tmp linked to /var/tmp and I
unable to save crontab -e entries.   My workaround is to remove the link, update
my crontab entries, then put the link back.

Please fix this bug.  It is years old.
Comment 7 Need Real Name 2004-10-27 07:02:09 EDT
Should crontab -e edit /etc/crontab by default?
Comment 8 Need Real Name 2004-10-27 07:03:51 EDT
btw bug 90981 seems to have a fix for this
Comment 9 Karsten Hopp 2004-10-27 09:10:53 EDT
tested with the current vim-6.3-029, cannot reproduce it anymore

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