weird access function in rsync code.

Paul Slootman paul+rsync at wurtel.net
Fri May 22 08:47:22 GMT 2009


On Fri 22 May 2009, Daniel.Li wrote:

> When I use "access" function to find out if the folder exist in rsync
> code. I found that it's will NOT act as normal function.
> 
> I have tried 2 test:
> 
> a) embedded in rsync function  "int recv_files(int f_in, char
> *local_name)" and hard coded with following line. 
> 
> 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?


Paul


More information about the rsync mailing list