MCPcopy Index your code
hub / github.com/RsyncProject/rsync / link_stat

Function link_stat

flist.c:246–262  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

244}
245
246int link_stat(const char *path, STRUCT_STAT *stp, int follow_dirlinks)
247{
248#ifdef SUPPORT_LINKS
249 if (copy_links)
250 return x_stat(path, stp, NULL);
251 if (x_lstat(path, stp, NULL) < 0)
252 return -1;
253 if (follow_dirlinks && S_ISLNK(stp->st_mode)) {
254 STRUCT_STAT st;
255 if (x_stat(path, &st, NULL) == 0 && S_ISDIR(st.st_mode))
256 *stp = st;
257 }
258 return 0;
259#else
260 return x_stat(path, stp, NULL);
261#endif
262}
263
264static inline int path_is_daemon_excluded(char *path, int ignore_filename)
265{

Callers 11

hard_link_checkFunction · 0.85
finish_hard_linkFunction · 0.85
set_file_attrsFunction · 0.85
readlink_statFunction · 0.85
send1extraFunction · 0.85
send_file_listFunction · 0.85
do_delete_passFunction · 0.85
try_dests_regFunction · 0.85
try_dests_nonFunction · 0.85
recv_generatorFunction · 0.85
touch_up_dirsFunction · 0.85

Calls 2

x_statFunction · 0.85
x_lstatFunction · 0.85

Tested by

no test coverage detected