X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/3bee67337d0491f55654cf8e926592365e5a8502..bcacc18bdf1bdac625ef1f178e8e32892544cc30:/main.c diff --git a/main.c b/main.c index cbda40e7..c0e15d61 100644 --- a/main.c +++ b/main.c @@ -273,9 +273,9 @@ oom: static char *get_local_name(struct file_list *flist,char *name) { - struct stat st; + STRUCT_STAT st; - if (stat(name,&st) == 0) { + if (do_stat(name,&st) == 0) { if (S_ISDIR(st.st_mode)) { if (chdir(name) != 0) { fprintf(FERROR,"chdir %s : %s (1)\n",name,strerror(errno));