weird access function in rsync code.

Daniel.Li daniel_li at usish.com
Mon May 25 01:53:24 GMT 2009


On Fri, 2009-05-22 at 22:06 +0800, Daniel.Li wrote:
> On Fri, 2009-05-22 at 13:10 +0200, Paul Slootman wrote:
> > On Fri 22 May 2009, Daniel.Li wrote:
> > > On Fri, 2009-05-22 at 10:47 +0200, Paul Slootman wrote:
> > > > > 
> > > > > access("/home/admin/test",F_OK)
> > > > > 
> > > > > Result: Failed with -1, just mean the test folder is NOT existed, but it
> > > > > does exist.
> > > 
> > > > Perhaps at that point rsync has chroot()ed somewhere else?
> > > 
> > > I checked uid/gid just before my code, uid=0 gid=0. And I use hard coded
> > > path. 
> > 
> > None of those are relevant to my question... chroot() != setuid()
> 
> Humm... Got it. http://en.wikipedia.org/wiki/Chroot 
> 
> That's great. Seems to be the root cause. Report back when I have news.
> Late today :)

Sorry for the late reply. Had a fever, recently :(, but ok now :)

I have found it in clientserver.c. Thanks Paul :)

> 
> Thanks you :)
> > 
> > 
> > Paul
> -- 
> Daniel Li
> 
> 
> 
-- 
Daniel Li




More information about the rsync mailing list