On Jul 13, 2007, at 1:35 PM, Eric Bollengier wrote:

>
> [EMAIL PROTECTED]:/tmp/regress/weird-files2$ cp -Rp weird-files weird-files2
>
> [EMAIL PROTECTED]:/tmp/regress/weird-files2$ ls -i | grep normal
> 339098 another-hardlink-to-normalfile
> 339119 hardlink-to-normalfile
> 339103 normalfile
>
> I will look, but i think that the test is ok, it's a "normal" error


 From the OS X cp command man page:

     -R    If source_file designates a directory, cp copies the  
directory and
            the entire subtree connected at that point.  This option  
also
            causes symbolic links to be copied, rather than  
indirected through,
            and for cp to create special files rather than copying  
them as nor-
            mal files.  Created directories have the same mode as the  
corre-
            sponding source directory, unmodified by the process' umask.

            Note that cp copies hard linked files as separate files.   
If you
            need to preserve hard links, consider using tar(1), cpio 
(1), or
            pax(1) instead.

So, yeah, behaving as designed.

Adam

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bacula-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-devel

Reply via email to