DO NOT REPLY [Bug 3778] rsync triggers ( pre/post xter scripts )

samba-bugs at samba.org samba-bugs at samba.org
Tue May 30 19:35:58 GMT 2006


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


wayned at samba.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED




------- Comment #1 from wayned at samba.org  2006-05-30 14:35 MST -------
A -1 in RSYNC_RAW_STATUS means that the waitpid() call failed for some reason
(the reason is not currently logged).

In order for rsync to be able to run the post-xfer script with full permissions
(i.e. outside any chroot, and as the original daemon user), it forks prior to
the copy, and the parent process just waits around for the child to do the copy
and exit.  For some reason, the parent process is getting an error back from
waitpid() instead of the exit status.

I'd suggest running the daemon under a system-call logging tool (use rsync
--daemon --no-detach to make things easier) and you will be able to see what
happens with the waitpid() call.


-- 
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.


More information about the rsync mailing list