[Bug 12820] rsync always try change owner and group of symlink in --fake-super mode
https://bugzilla.samba.org/show_bug.cgi?id=12820 --- Comment #1 from Dave Gordon --- (In reply to Pavel Alexeev from comment #0) The listing at the end of your report is presumably on the sending side; on the receiver, you should see that the transfer has converted the symlink into a plain file, which is how fake-super has worked ever since commit 6e310d38fcdeacb8055bb7e83d4e64c37fd54a38 Author: Wayne Davison Date: Wed Sep 2 09:06:29 2009 -0700 Have --fake-super turn a symlink into a file when NO_SYMLINK_XATTRS is defined. (unless the destination system supports xattrs on symlinks?) The expected result on a Linux destination would be: $ LANG=en_US.utf-8 ls -l rsync.symlinks total 4 -rw-rw-r--. 1 pasha pasha 13 Oct 11 06:10 file.itself -rwxrwxrwx. 1 pasha pasha 11 Oct 11 06:11 file.symlink $ cat rsync.symlinks/file.symlink file.itself i.e. the symlink would be transformed into a plain file containing the text of the link path (unfortunately, still with mode 0777!). Fake-super mode would also (try to) create an xattr named "user.rsync.%stat", but that wouldn't work if the filesystem object has been created as a symlink. Maybe failing to find the xattr causes rsync to think there's a uid/gid mismatch. At all events, this doesn't happen (for me) with version 3.1.3 (or 3.1.1). .Dave. -- 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
[Bug 12820] New: rsync always try change owner and group of symlink in --fake-super mode
https://bugzilla.samba.org/show_bug.cgi?id=12820 Bug ID: 12820 Summary: rsync always try change owner and group of symlink in --fake-super mode Product: rsync Version: 3.0.9 Hardware: All OS: All Status: NEW Severity: normal Priority: P5 Component: core Assignee: way...@samba.org Reporter: pa...@hubbitus.info QA Contact: rsync...@samba.org Hello. I long time discover strange to me behavior. If I add --fake-super option on both sides rsync start always set owner and group of symlink. What interesting there no error, but it done each time as it has been changed. Simple reproduce: $ mkdir rsync.symlinks $ echo 'file content' > rsync.symlinks/file.itself $ ln -s file.itself rsync.symlinks/file.symlink Then try to transfer it on remote host: $ rsync -apr --links --itemize-changes --fake-super -M--fake-super rsync.symlinks [hidden email]:~/temp/rsync.symlinks cd+ rsync.symlinks/ file.itself And again: .Log... rsync.symlinks/file.symlink -> file.itself I had tried use --rsync-path="rsync --fake-super" instead of -M--fake-super what unsurprisingly give me same result: $ rsync -apr --links --itemize-changes --fake-super --rsync-path="rsync --fake-super" rsync.symlinks [hidden email]:~/temp/rsync.symlinks .Log... rsync.symlinks/file.symlink -> file.itself Please note all symlinks correct: $ LANG=en_US.utf-8 ls -l rsync.symlinks total 4 -rw-rw-r--. 1 pasha pasha 13 Oct 11 06:10 file.itself lrwxrwxrwx. 1 pasha pasha 11 Oct 11 06:11 file.symlink -> file.itself $ cat rsync.symlinks/file.symlink file content It also correct on receiver side. P.S. Asked long time ago in ML - http://samba.2283325.n4.nabble.com/rsync-always-try-change-owner-and-group-of-symlink-in-fake-super-mode-td4692664.html -- 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
[Bug 11558] New: rsync always try change owner and group of symlink in --fake-super mode
https://bugzilla.samba.org/show_bug.cgi?id=11558 Bug ID: 11558 Summary: rsync always try change owner and group of symlink in --fake-super mode Product: rsync Version: 3.1.2 Hardware: x64 OS: Linux Status: NEW Severity: normal Priority: P5 Component: core Assignee: way...@samba.org Reporter: pa...@hubbitus.info QA Contact: rsync...@samba.org Hi. I long time discover strange to me behavior. If I add --fake-super option on both sides rsync start always set owner and group of symlink. What interesting there no error, but it done each time as it has been changed. Simple reproduce: $ mkdir rsync.symlinks $ echo 'file content' > rsync.symlinks/file.itself $ ln -s file.itself rsync.symlinks/file.symlink Then try to transfer it on remote host: $ rsync -apr --links --itemize-changes --fake-super -M--fake-super rsync.symlinks bac...@store.hubbitus.info:~/temp/rsync.symlinks cd+ rsync.symlinks/ file.itself And again: .Log... rsync.symlinks/file.symlink -> file.itself I had tried use --rsync-path="rsync --fake-super" instead of -M--fake-super what unsurprisingly give me same result: $ rsync -apr --links --itemize-changes --fake-super --rsync-path="rsync --fake-super" rsync.symlinks bac...@store.hubbitus.info:~/temp/rsync.symlinks .Log... rsync.symlinks/file.symlink -> file.itself I had post it in mail list - http://samba.2283325.n4.nabble.com/rsync-always-try-change-owner-and-group-of-symlink-in-fake-super-mode-td4692664.html but does not receive intelligible answer. Possibly relates to https://bugzilla.samba.org/show_bug.cgi?id=10496 With best wishes, Pavel Alexeev. -- 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
Re: rsync always try change owner and group of symlink in --fake-super mode
No, no. All symlinks correct, look: $ LANG=en_US.utf-8 ls -l rsync.symlinks total 4 -rw-rw-r--. 1 pasha pasha 13 Oct 11 06:10 file.itself lrwxrwxrwx. 1 pasha pasha 11 Oct 11 06:11 file.symlink -> file.itself $ cat rsync.symlinks/file.symlink file content It also correct on receiver side. On 11.10.2015 20:54, Joe wrote: > ln -s real-file symlink > file.itself is ./rsync.symlinks/file.itself, but you are trying to link > ./file.itself (which presumably doesn't exist) to the real file. > > Since a symlink is just a pointer, it gets created, but doesn't point > to any real file. > > Try: > > ln -s rsync.symlinks/file.itself . > > Joe > > On 10/11/2015 06:17 AM, Pavel Alexeev wrote: >> Hi all. >> >> I long time discover strange to me behavior. If I add --fake-super >> option on both sides rsync start always set owner and group of symlink. >> What interesting there no error, but it done each time as it has been >> changed. >> >> Simple reproduce: >> $ mkdir rsync.symlinks >> $ echo 'file content' > rsync.symlinks/file.itself >> $ ln -s file.itself rsync.symlinks/file.symlink >> >> Then try to transfer it on remote host: >> $ rsync -apr --links --itemize-changes --fake-super -M--fake-super >> rsync.symlinks bac...@store.hubbitus.info:~/temp/rsync.symlinks >> cd+ rsync.symlinks/ >> > cL+ rsync.symlinks/file.symlink -> file.itself >> >> And again: >> .Log... rsync.symlinks/file.symlink -> file.itself >> >> >> I had tried use --rsync-path="rsync --fake-super" instead of >> -M--fake-super what unsurprisingly give me same result: >> $ rsync -apr --links --itemize-changes --fake-super --rsync-path="rsync >> --fake-super" rsync.symlinks >> bac...@store.hubbitus.info:~/temp/rsync.symlinks >> .Log... rsync.symlinks/file.symlink -> file.itself >> >> Is it a bug and have worth to fill issue? >> >> -- >> With best wishes, Pavel Alexeev >> > -- 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
Re: rsync always try change owner and group of symlink in --fake-super mode
ln -s real-file symlink file.itself is ./rsync.symlinks/file.itself, but you are trying to link ./file.itself (which presumably doesn't exist) to the real file. Since a symlink is just a pointer, it gets created, but doesn't point to any real file. Try: ln -s rsync.symlinks/file.itself . Joe On 10/11/2015 06:17 AM, Pavel Alexeev wrote: Hi all. I long time discover strange to me behavior. If I add --fake-super option on both sides rsync start always set owner and group of symlink. What interesting there no error, but it done each time as it has been changed. Simple reproduce: $ mkdir rsync.symlinks $ echo 'file content' > rsync.symlinks/file.itself $ ln -s file.itself rsync.symlinks/file.symlink Then try to transfer it on remote host: $ rsync -apr --links --itemize-changes --fake-super -M--fake-super rsync.symlinks bac...@store.hubbitus.info:~/temp/rsync.symlinks cd+ rsync.symlinks/ file.itself And again: .Log... rsync.symlinks/file.symlink -> file.itself I had tried use --rsync-path="rsync --fake-super" instead of -M--fake-super what unsurprisingly give me same result: $ rsync -apr --links --itemize-changes --fake-super --rsync-path="rsync --fake-super" rsync.symlinks bac...@store.hubbitus.info:~/temp/rsync.symlinks .Log... rsync.symlinks/file.symlink -> file.itself Is it a bug and have worth to fill issue? -- With best wishes, Pavel Alexeev -- 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
rsync always try change owner and group of symlink in --fake-super mode
Hi all. I long time discover strange to me behavior. If I add --fake-super option on both sides rsync start always set owner and group of symlink. What interesting there no error, but it done each time as it has been changed. Simple reproduce: $ mkdir rsync.symlinks $ echo 'file content' > rsync.symlinks/file.itself $ ln -s file.itself rsync.symlinks/file.symlink Then try to transfer it on remote host: $ rsync -apr --links --itemize-changes --fake-super -M--fake-super rsync.symlinks bac...@store.hubbitus.info:~/temp/rsync.symlinks cd+ rsync.symlinks/ file.itself And again: .Log... rsync.symlinks/file.symlink -> file.itself I had tried use --rsync-path="rsync --fake-super" instead of -M--fake-super what unsurprisingly give me same result: $ rsync -apr --links --itemize-changes --fake-super --rsync-path="rsync --fake-super" rsync.symlinks bac...@store.hubbitus.info:~/temp/rsync.symlinks .Log... rsync.symlinks/file.symlink -> file.itself Is it a bug and have worth to fill issue? -- With best wishes, Pavel Alexeev -- 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