From: Peter Stephenson <pws@csr.com>
To: zsh-workers@sunsite.dk
Subject: Re: [PATCH]: restore permissions and mode on HISTFILE when renaming it
Date: Mon, 19 Dec 2005 11:56:50 +0000 [thread overview]
Message-ID: <20051219115650.4c496d41.pws@csr.com> (raw)
In-Reply-To: <20051216183924.GD2333@dot.blorf.net>
Wayne Davison <wayned@users.sourceforge.net> wrote:
> I think that having rsync maintain the current permissions and group is
> a desirable feature. I also like Bart's idea that zsh should refuse to
> re-write the history file (with a warning) if it is currently owned by
> some other user. The attached patch does this. (If folks like the
> idea for the upcoming release, I'll go ahead and commit it.)
Seems OK to me.
> As for the HISTFILE behavior when using sudo, I have code in my .zshrc
> that makes sure that root writes out its history into its own history
> file. You can do this by conditionally redefining HISTFILE based on the
> current user (among other possibilities).
Yes, I think that's the right way to go (we just started using sudo a
couple of weeks ago, coincidentally, and that's what I did). I admit it's
a bit annoying the first time.
--
Peter Stephenson <pws@csr.com> Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070
This message has been scanned for viruses by BlackSpider MailControl - www.blackspider.com
prev parent reply other threads:[~2005-12-19 11:58 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-16 8:42 Arkadiusz Miskiewicz
2005-12-16 15:48 ` Bart Schaefer
2005-12-16 18:39 ` Wayne Davison
2005-12-19 11:56 ` Peter Stephenson [this message]
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=20051219115650.4c496d41.pws@csr.com \
--to=pws@csr.com \
--cc=zsh-workers@sunsite.dk \
/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.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
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).