From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27226 invoked from network); 19 Dec 2005 11:58:47 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.0 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 19 Dec 2005 11:58:47 -0000 Received: (qmail 77736 invoked from network); 19 Dec 2005 11:58:41 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 19 Dec 2005 11:58:41 -0000 Received: (qmail 1786 invoked by alias); 19 Dec 2005 11:58:39 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 22098 Received: (qmail 1775 invoked from network); 19 Dec 2005 11:58:39 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 19 Dec 2005 11:58:39 -0000 Received: (qmail 77456 invoked from network); 19 Dec 2005 11:58:39 -0000 Received: from cluster-c.mailcontrol.com (HELO rly18c.srv.mailcontrol.com) (168.143.177.190) by a.mx.sunsite.dk with SMTP; 19 Dec 2005 11:58:37 -0000 Received: from exchange03.csr.com (uuk202166.uk.customer.alter.net [62.189.241.194] (may be forged)) by rly18c.srv.mailcontrol.com (MailControl) with ESMTP id jBJBuUiT010587 for ; Mon, 19 Dec 2005 11:58:33 GMT Received: from news01 ([10.103.143.38]) by exchange03.csr.com with Microsoft SMTPSVC(5.0.2195.6713); Mon, 19 Dec 2005 11:56:50 +0000 Date: Mon, 19 Dec 2005 11:56:50 +0000 From: Peter Stephenson To: zsh-workers@sunsite.dk Subject: Re: [PATCH]: restore permissions and mode on HISTFILE when renaming it Message-Id: <20051219115650.4c496d41.pws@csr.com> In-Reply-To: <20051216183924.GD2333@dot.blorf.net> References: <200512160942.30494.arekm@pld-linux.org> <20051216183924.GD2333@dot.blorf.net> Organization: Cambridge Silicon Radio X-Mailer: Sylpheed version 0.9.12 (GTK+ 1.2.10; i386-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 19 Dec 2005 11:56:50.0918 (UTC) FILETIME=[4C0BC060:01C60493] X-Scanned-By: MailControl A-05-40-01 (www.mailcontrol.com) on 10.67.0.128 Wayne Davison 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 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