From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Re: copy-directory Date: Tue, 06 Oct 2009 19:26:36 +0200 Message-ID: <87pr90wi0j.fsf@gmx.de> References: <8763avuyt3.fsf@gmx.de> <83zl87nw88.fsf@gnu.org> <87y6nr2aho.fsf@gmx.de> <87ab06p925.fsf@lola.goethe.zz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1254850027 18648 80.91.229.12 (6 Oct 2009 17:27:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 6 Oct 2009 17:27:07 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 06 19:26:56 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MvDoM-0005ks-VN for ged-emacs-devel@m.gmane.org; Tue, 06 Oct 2009 19:26:55 +0200 Original-Received: from localhost ([127.0.0.1]:44377 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MvDoM-00020E-F9 for ged-emacs-devel@m.gmane.org; Tue, 06 Oct 2009 13:26:54 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MvDoF-0001xG-K6 for emacs-devel@gnu.org; Tue, 06 Oct 2009 13:26:47 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MvDoA-0001nv-DZ for emacs-devel@gnu.org; Tue, 06 Oct 2009 13:26:46 -0400 Original-Received: from [199.232.76.173] (port=54989 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MvDoA-0001nY-7R for emacs-devel@gnu.org; Tue, 06 Oct 2009 13:26:42 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]:33168) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1MvDo9-0008Go-Jv for emacs-devel@gnu.org; Tue, 06 Oct 2009 13:26:42 -0400 Original-Received: (qmail invoked by alias); 06 Oct 2009 17:26:38 -0000 Original-Received: from p57A22434.dip0.t-ipconnect.de (EHLO arthur.local) [87.162.36.52] by mail.gmx.net (mp011) with SMTP; 06 Oct 2009 19:26:38 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1/dct1EhWLdZlVyNuAMgHcP2h5E0zcB/hqT98lMsU F1MfxoYWI3RA54 In-Reply-To: <87ab06p925.fsf@lola.goethe.zz> (David Kastrup's message of "Mon, 05 Oct 2009 09:57:22 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-FuHaFi: 0.64 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:115936 Archived-At: David Kastrup writes: > Stefan Monnier writes: > >>> Or shall we remove PRESERVE-UID-GID from `copy-directory'? >> >> I guess we can remove it for now, > > I think that UID/GID should transparently be preserved when copying > directories whenever possible (in particular when using /sudo:: methods > or similar). I don't think that there is an important usage case for > "don't preserve UID/GID even if you could": it would likely imply > copying a tree and turning it into root/root possession on today's > systems. Although it is not on my top priority, I would second David. A primitive function `set-file-owner' would not harm, if it is explicitely said in the docstring, that it works only in the cases the underlying OS supports it. And a Tramp file name handler could be called for this, useful at least for "su" and "sudo" connections. What I'm curious: does change ownership work for other systems, like Win32? The smbclient, used in Tramp for "smb" connections, offers a chown subcommand ... maybe it is applicable only, if there is a Samba server at the other end. Best regards, Michael.