util-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* vipw does not work with some editors
@ 2012-07-30 21:20 Mantas M.
  2012-07-31  8:58 ` Karel Zak
  2012-07-31  9:33 ` Bernhard Voelker
  0 siblings, 2 replies; 5+ messages in thread
From: Mantas M. @ 2012-07-30 21:20 UTC (permalink / raw)
  To: util-linux

Some editors, such as Vim with 'writebackup' mode enabled, use "atomic
save" in which the old file is deleted and a new one with the same name
created in its place. When `vipw` is used with such an editor, it never
detects changes, because it compares fstat() on a file descriptor
pointing to the old file.

Can this be fixed in `vipw`, or should I just start configuring Vim to
stop making backups for vipw's temporary files?

-- 
Mantas Mikulėnas <grawity@gmail.com>

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-07-31 11:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-30 21:20 vipw does not work with some editors Mantas M.
2012-07-31  8:58 ` Karel Zak
2012-07-31  9:33 ` Bernhard Voelker
2012-07-31 10:46   ` Mantas Mikulėnas
2012-07-31 11:33     ` Sami Kerola

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).