rem: fprintf(FERROR,"chdir %s : %s\n",name,strerror(errno));
add: fprintf(FERROR,"chdir %s : %s (2)\n",name,strerror(errno));
context: static char *get_local_name(struct file_list *flist,char *name){  struct stat st;  if (stat(name,&st) == 0) {    if (S_ISDIR(st.st_mode)) {      if (chdir(name) != 0) {	fprintf(FERROR,"chdir %s : %s\n",name,strerror(errno));	exit_cleanup(1);      }      return NULL;    }    if (flist->count > 1) {      fprintf(FERROR,"ERROR: destination must be a directory when copying more than 1 file\n");      exit_cleanup(1);    }    return name;  }  if (flist->count == 1)    return name;  if (!name)     return NULL;  if (mkdir(name,0777 & ~orig_umask) != 0) {    fprintf(FERROR,"mkdir %s : %s\n",name,strerror(errno));    exit_cleanup(1);  } else {    fprintf(FINFO,"created directory %s\n",name);  }  if (chdir(name) != 0) {    fprintf(FERROR,"chdir %s : %s\n",name,strerror(errno));    exit_cleanup(1);  }  return NULL;}