2017-11-06 23:14 GMT+03:00 Gary Johnson <garyj...@spocom.com>: > On 2017-11-06, Scott Court wrote: >> Those are very valid points, and I agree that the way Neovim handles >> .swp files is better. I've already explained on here and on Openwall >> numerous reasons why I believe that is the best solution and made the >> case that .swp files should be stored in ~/.vim/swap by default. However >> Bram has veto power and shot that idea down. >> >> So instead I'm trying to find the next best way to address this. >> /var/lib being writable only by root and therefore requiring cooperation >> from packagers did not occur to me, but that's definitely a problem. >> Maybe it would be doable as a major change in the next major release of >> Vim, but you're right; that definitely won't work as a security patch. >> So much for that idea. > > What about using /var/tmp instead of /var/lib? It's writable by > everyone and my notes say that it is not cleared at power-up, but my > notes don't include a reference for that claim.
It is rather distribution-specific. AFAIR I have seen distributions where this is the same as /tmp (one or the other is a symlink), missing or not actually writeable by not root. Third is my case BTW, though I do not remember whether it is Gentoo default or I have messed up something; in any case no apps complain about such state of things: I only have three directories there and all are related to system package manager: 1. /var/tmp/portage with user:group portage:portage, 0775. The default location for build files. 2. /var/tmp/distfiles, root:portage, 0775. Not default location, but my own preference for where to keep source code archives. 3. /var/tmp/genkernel, root:root, 0755. Default location for genkernel temporary files used when it builds the kernel. `man hier` states that /var/tmp is like /tmp, but for “temporary files stored for an unspecified duration” and that it itself is from FHS version 2.3, so probably I messed up something with permissions (handbook also briefly mentions 1777 permissions for /var/tmp), but still it works like that. > > Regards, > Gary > > -- > -- > You received this message from the "vim_dev" maillist. > Do not top-post! Type your reply below the text you are replying to. > For more information, visit http://www.vim.org/maillist.php > > --- > You received this message because you are subscribed to the Google Groups > "vim_dev" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to vim_dev+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.