weird access function in rsync code.
Daniel.Li
daniel_li at usish.com
Fri May 22 08:14:15 GMT 2009
Dear List,
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.
b) simple "hello world program"
OK.
Result: return 0, folder exist.
Right now, I can't figure out what's wrong. Can anyone give a tip?
Thanks in advance.
--
Daniel
More information about the rsync
mailing list