git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Petr Baudis <pasky@suse.cz>
To: Linus Torvalds <torvalds@osdl.org>
Cc: "Randal L. Schwartz" <merlyn@stonehenge.com>,
	Jonas Fonseca <fonseca@diku.dk>,
	git@vger.kernel.org
Subject: Re: [PATCH] Cogito documentation updates
Date: Sun, 27 Nov 2005 16:28:27 +0100	[thread overview]
Message-ID: <20051127152827.GJ22159@pasky.or.cz> (raw)
In-Reply-To: <Pine.LNX.4.64.0511230923131.13959@g5.osdl.org>

Dear diary, on Wed, Nov 23, 2005 at 06:29:34PM CET, I got a letter
where Linus Torvalds <torvalds@osdl.org> said that...
> 
> 
> On Wed, 23 Nov 2005, Randal L. Schwartz wrote:
> > 
> > Delete the -d switch, or explain to me why it is there, and let's work
> > out a POSIX workaround.
> 
> It's
> 
>        -d:     same as --no-dereference --preserve=link
> 
>        --no-dereference
>               never follow symbolic links
> 
>        --preserve[=ATTR_LIST]
>               preserve   the   specified   attributes   (default:  mode,owner-
>               ship,timestamps) and security contexts, if  possible  additional
>               attributes: links, all
> 
> so it's basically making sure that the copy copies the _link_, not the 
> file it points to.
> 
> I think you may have to use "cpio -p" instead of "cp" to be portable. 
> Something like
> 
> 	cpio -plmu $src $dst
> 
> might do it.

Well, but -l links the files instead of copying them, right? That's
certainly not what I want, I want to really _copy_ the files. Also, does
cpio preserve the hardlinks between the copied files? If not, then what
you wrote is equivalent to

	cp -pRP

which should be even POSIX, hopefully. That's what I changed the -dpR to
now.

-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
VI has two modes: the one in which it beeps and the one in which
it doesn't.

  reply	other threads:[~2005-11-27 15:29 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-20 10:11 [PATCH] Cogito documentation updates Jonas Fonseca
2005-11-20 15:37 ` Randal L. Schwartz
2005-11-23 12:16   ` Jonas Fonseca
2005-11-23 14:33     ` Randal L. Schwartz
2005-11-23 14:58       ` Andreas Ericsson
2005-11-23 19:52         ` Junio C Hamano
2005-11-23 17:29       ` Linus Torvalds
2005-11-27 15:28         ` Petr Baudis [this message]
2005-11-26 19:12 ` Jonas Fonseca

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20051127152827.GJ22159@pasky.or.cz \
    --to=pasky@suse.cz \
    --cc=fonseca@diku.dk \
    --cc=git@vger.kernel.org \
    --cc=merlyn@stonehenge.com \
    --cc=torvalds@osdl.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).