weird access function in rsync code.

Daniel.Li daniel_li at usish.com
Fri May 22 14:06:30 GMT 2009


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 :)

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





More information about the rsync mailing list