From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1PXVjR-0005ZC-HJ for garchives@archives.gentoo.org; Tue, 28 Dec 2010 09:20:37 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2ED95E0782; Tue, 28 Dec 2010 09:19:15 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id EF81BE0782 for ; Tue, 28 Dec 2010 09:19:14 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 73FEC1B406D for ; Tue, 28 Dec 2010 09:19:14 +0000 (UTC) X-Virus-Scanned: by amavisd-new using ClamAV at gentoo.org X-Spam-Score: -0.591 X-Spam-Level: X-Spam-Status: No, score=-0.591 required=5.5 tests=[AWL=-0.059, BAYES_00=-2.599, RCVD_NUMERIC_HELO=2.067] Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZSurAAeV6KGg for ; Tue, 28 Dec 2010 09:19:08 +0000 (UTC) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by smtp.gentoo.org (Postfix) with ESMTP id 2553E1B4062 for ; Tue, 28 Dec 2010 09:19:07 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PXVhv-0000Sh-3P for gentoo-user@gentoo.org; Tue, 28 Dec 2010 10:19:03 +0100 Received: from 83.219.114.94 ([83.219.114.94]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 28 Dec 2010 10:19:03 +0100 Received: from remy.blank by 83.219.114.94 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 28 Dec 2010 10:19:03 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: Remy Blank Subject: [gentoo-user] Re: Best way to copy /* ? Date: Tue, 28 Dec 2010 10:18:46 +0100 Message-ID: References: <201012271537.oBRFbUGO027939@dcnode-01.unlimitedmail.net> <20101227163710.7071eae2@digimed.co.uk> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigC1C93B0D4E038D5DF602401F" X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 83.219.114.94 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.23) Gecko/20100305 Thunderbird/2.0.0.23 Mnenhy/0.7.5.0 In-Reply-To: X-Enigmail-Version: 1.1.2 X-Archives-Salt: e17083a0-e0a0-41fa-9a70-4790bf1f9447 X-Archives-Hash: 6b5e04426e7d50be80c639a1366b53cb This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigC1C93B0D4E038D5DF602401F Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Marc Blumentritt wrote: > Ah, OK. Didn't know this. Do you know, why it does work like this? It initially sets the permissions to 600 presumably to limit access to an unfinished copy from other users. The mtime must be set after copying the contents, because adding a file or directory changes the mtime of the parent. > And does cp -a work in the same way? Probably yes, for the same reasons, but I haven't checked. -- Remy --------------enigC1C93B0D4E038D5DF602401F Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) iEYEARECAAYFAk0Zq3oACgkQCeNfIyhvXjL4MACfaxJlcZXtMmLqYdEyJpQEC1uo cHYAoKU3v8D5rb6Oei2szZ9fGv6ob8/c =hPwj -----END PGP SIGNATURE----- --------------enigC1C93B0D4E038D5DF602401F--