From: "Mantas M." <grawity@gmail.com>
To: util-linux@vger.kernel.org
Subject: vipw does not work with some editors
Date: Tue, 31 Jul 2012 00:20:10 +0300 [thread overview]
Message-ID: <20120730212010.GA56766@rain.home> (raw)
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>
next reply other threads:[~2012-07-30 21:20 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-30 21:20 Mantas M. [this message]
2012-07-31 8:58 ` vipw does not work with some editors Karel Zak
2012-07-31 9:33 ` Bernhard Voelker
2012-07-31 10:46 ` Mantas Mikulėnas
2012-07-31 11:33 ` Sami Kerola
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120730212010.GA56766@rain.home \
--to=grawity@gmail.com \
--cc=util-linux@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).