From mboxrd@z Thu Jan 1 00:00:00 1970 Path: quimby.gnus.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.devel Subject: Re: [yidong@stanford.edu: Lisp file permissions after install] Date: Thu, 28 Feb 2002 10:45:04 -0800 (PST) Message-ID: <200202281845.g1SIj4I00651@shade.twinsun.com> References: NNTP-Posting-Host: quimby2.netfonds.no X-Trace: quimby2.netfonds.no 1014922366 7834 195.204.10.66 (28 Feb 2002 18:52:46 GMT) X-Complaints-To: usenet@quimby2.netfonds.no NNTP-Posting-Date: 28 Feb 2002 18:52:46 GMT Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby2.netfonds.no with esmtp (Exim 3.12 #1 (Debian)) id 16gVfa-00022G-00 for ; Thu, 28 Feb 2002 19:52:46 +0100 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian)) id 16gVbD-0004bq-00; Thu, 28 Feb 2002 13:48:15 -0500 Original-Received: from alcor.twinsun.com ([198.147.65.9]) by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian)) id 16gVY9-0004TQ-00 for ; Thu, 28 Feb 2002 13:45:06 -0500 Original-Received: from shade.twinsun.com ([192.54.239.27]) by alcor.twinsun.com (8.12.1/8.12.1) with ESMTP id g1SIj5Hp007619 for ; Thu, 28 Feb 2002 10:45:05 -0800 (PST) Original-Received: (eggert@localhost) by shade.twinsun.com (8.11.6+Sun/8.11.6) id g1SIj4I00651; Thu, 28 Feb 2002 10:45:04 -0800 (PST) Original-To: emacs-devel@gnu.org In-reply-to: (rms@gnu.org) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: quimby.gnus.org gmane.emacs.devel:1643 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:1643 [Sorry about the delay; my mailbox overflowed.] > From: Richard Stallman > Date: Wed, 26 Dec 2001 12:33:52 -0500 > > The easy way to fix this is to do chown with -R. But I think that -R > in chown is a fairly new feature--perhaps a GNU-only feature, or > perhaps a POSIX feature--and it might not work universally. > > Does anyone have another suggestion? The following command should be portable even to older hosts: find DIR -exec chown user {} ';' > I'm surprised that the command > > && (echo "Copying $${dir} to $${dest}..." ; \ > (cd $${dir}; tar -chf - . ) \ > | (cd $${dest}; umask 022; \ > tar -xvf - && cat > /dev/null) || exit 1; \ > > does not make the new files with root as owner. > GNU tar has an option `--same-owner' that seems to ask > for such behavior, which would seem to imply that the > default behavior should be something different. > > Eggert, can you tell us anything about this? > Are there other tar versions which preserve the owner by default? That's the typical behavior, when tar is invoked by root. In some Unix implementations tar has an -o option to disable this, but -o has a different meaning with GNU tar. So it is a bit of a portability problem. _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://mail.gnu.org/mailman/listinfo/emacs-devel