https://bugzilla.samba.org/show_bug.cgi?id=10568

           Summary: --copy-links Fails if link name has more than 32 chars
           Product: rsync
           Version: 3.0.4
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: critical
          Priority: P5
         Component: core
        AssignedTo: way...@samba.org
        ReportedBy: levy.da...@gmail.com
         QAContact: rsync...@samba.org


Created attachment 9879
  --> https://bugzilla.samba.org/attachment.cgi?id=9879
strace output when running rsync -L

Having a link with a name exceeding 32 characters fails to transform symlink
into referent file/dir.

Example of links which fail to convert to referent files:

armedia@vmelr01:/ardome/media/kf/kf1/2014/03/25/1100140325029584406/ardok-index>
l
total 1024
drwxr-xr-x 2 armedia ardome 2141 Apr 26 13:16 ./
drwxr-xr-x 3 armedia ardome 2054 Apr 26 00:16 ../
lrwxrwxrwx 1 armedia ardome   91 Apr 26 12:14 0830348-PULSERASROJASCAP1-Y.data
->
/ARDOMEMOUNTS/media/kf//kf0/2014/03/25/1100140325029584406/0830348-PULSERASROJASCAP1-Y.data
lrwxrwxrwx 1 armedia ardome   92 Apr 26 13:16 0830348-PULSERASROJASCAP1-Y.index
->
/ARDOMEMOUNTS/media/kf//kf0/2014/03/25/1100140325029584406/0830348-PULSERASROJASCAP1-Y.index


RESULT:
armedia@vmelr01:/ardome/media/kf/kf1/2014/03/25/1100140325029584406/ardok-index>
l
total 3584
drwxr-xr-x 2 armedia ardome    2147 Apr 26 13:17 ./
drwxr-xr-x 3 armedia ardome    2054 Apr 26 00:16 ../
lrwxrwxrwx 1 armedia ardome      91 Apr 26 12:14
0830348-PULSERASROJASCAP1-Y.data ->
/ARDOMEMOUNTS/media/kf//kf0/2014/03/25/1100140325029584406/0830348-PULSERASROJASCAP1-Y.data
-rw-r--r-- 1 armedia ardome 2504142 Apr 26 13:17
0830348-PULSERASROJASCAP1-Y.index


File exceeding 32 chars gets transformed into file with less than 32 chars,
check file sizes.
in example:
- 0830348-PULSERASROJASCAP1-Y.index has been transformed to wrong file
0830348-PULSERASROJASCAP1-Y.data instead.

Original files being linked size
armedia@vmelr01:/ardome/media/kf/kf1/2014/03/25/1100140325029584406/ardok-index>
l /ARDOMEMOUNTS/media/kf//kf0/2014/03/25/1100140325029584406/
total 3040
drwxrwxrwx   2 armedia ardome    8192 Mar 25 03:49 ./
drwxrwxrwx 304 armedia ardome   24576 Mar 25 23:56 ../
-rw-rw-rw-   1 armedia ardome 2504142 Mar 25 04:34
0830348-PULSERASROJASCAP1-Y.data
-rw-rw-rw-   1 armedia ardome  566792 Apr  7 16:04
0830348-PULSERASROJASCAP1-Y.index  


STRACE ATTCHED.

-- 
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Reply via email to