Gentoo Archives: gentoo-user

From: Remy Blank <remy.blank@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: Best way to copy /* ?
Date: Tue, 28 Dec 2010 09:20:37
Message-Id: ifca1q$dfn$1@dough.gmane.org
In Reply to: [gentoo-user] Re: Best way to copy /* ? by Marc Blumentritt
1 Marc Blumentritt wrote:
2 > Ah, OK. Didn't know this. Do you know, why it does work like this?
3
4 It initially sets the permissions to 600 presumably to limit access to
5 an unfinished copy from other users.
6
7 The mtime must be set after copying the contents, because adding a file
8 or directory changes the mtime of the parent.
9
10 > And does cp -a work in the same way?
11
12 Probably yes, for the same reasons, but I haven't checked.
13
14 -- Remy

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] Re: Best way to copy /* ? Neil Bothwick <neil@××××××××××.uk>