Bug 967128 - /etc/vimrc tries to avoid writing swap on USB, but has obsolete path
Summary: /etc/vimrc tries to avoid writing swap on USB, but has obsolete path
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: vim
Version: 19
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Karsten Hopp
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-05-24 20:40 UTC by karlp
Modified: 2015-02-19 09:59 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-02-17 15:20:04 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description karlp 2013-05-24 20:40:13 UTC
Description of problem:
While trying to solve a different bug, I was looking in the /etc/vimrc file shipped in Fedora 18.  It contains these lines,
" don't write swapfile on most commonly used directories for NFS mounts or USB sticks
  autocmd BufNewFile,BufReadPre /media/*,/mnt/* set directory=~/tmp,/var/tmp,/tmp

Which is a noble goal, but at least in fed17 and fed18, usb sticks don't turn up in /media/* or /mnt/*  they're turning up in /run/media/user/* on f18, and I think it was actually somewhere else on f17. Either way, it's not correct.

karlp@tera:/run/media/karlp/KDISK$ ls -la .*.swp
-rw-r--r-- 1 karlp karlp 12288 May 24 20:37 .blah.swp
It happily writes a swp file to the usb mount

Version-Release number of selected component (if applicable):
2:7.3.944-1.fc18

How reproducible:
every time


Steps to Reproduce:
1. mount a usb disk
2. edit a file
3. see where the swap file got written

Actual results:
it's in the same dir


Expected results:
it should use /tmp, like it tries to for mounted disks


Additional info:

Comment 1 Fedora End Of Life 2013-12-21 13:42:41 UTC
This message is a reminder that Fedora 18 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 18. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '18'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 18's end of life.

Thank you for reporting this issue and we are sorry that we may not be 
able to fix it before Fedora 18 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior to Fedora 18's end of life.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 2 karlp 2013-12-21 14:20:55 UTC
Still a bug in fedora 19
/etc/vimrc has the same line as before:

  autocmd BufNewFile,BufReadPre /media/*,/mnt/* set directory=~/tmp,/var/tmp,/tmp

And usb sticks are still mounting under /run/media.

Comment 3 Fedora End Of Life 2015-01-09 18:12:52 UTC
This message is a notice that Fedora 19 is now at end of life. Fedora 
has stopped maintaining and issuing updates for Fedora 19. It is 
Fedora's policy to close all bug reports from releases that are no 
longer maintained. Approximately 4 (four) weeks from now this bug will
be closed as EOL if it remains open with a Fedora 'version' of '19'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 19 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 4 karlp 2015-01-10 00:55:50 UTC
In Fedora 20, this appears to be fixed, 

    " don't write swapfile on most commonly used directories for NFS mounts or USB sticks
    autocmd BufNewFile,BufReadPre /media/*,/run/media/*,/mnt/* set directory=~/tmp,/var/tmp,/tmp

Fix introduced from some other source.  Better late than never.

Comment 5 Fedora End Of Life 2015-02-17 15:20:04 UTC
Fedora 19 changed to end-of-life (EOL) status on 2015-01-06. Fedora 19 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 6 karlp 2015-02-19 09:59:34 UTC
It was fixed, I just don't have permissions to close it myself.

You're ruining your stats by not actually reading anything users write here and letting a bugbot process everything :(


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