X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/2acf81eb004292893a86b9e2cfa7f2ab4fcc2fb6..716baed7ff23f949861f0eb369c013408e17f984:/main.c diff --git a/main.c b/main.c index 9b377386..900cd64e 100644 --- a/main.c +++ b/main.c @@ -36,7 +36,7 @@ static void report(int f) extern int do_stats; if (am_daemon) { - log_exit(0); + log_exit(0, __FILE__, __LINE__); if (f == -1 || !am_sender) return; } @@ -171,7 +171,10 @@ static char *get_local_name(struct file_list *flist,char *name) if (verbose > 2) rprintf(FINFO,"get_local_name count=%d %s\n", - flist->count, name); + flist->count, NS(name)); + + if (!name) + return NULL; if (do_stat(name,&st) == 0) { if (S_ISDIR(st.st_mode)) { @@ -192,9 +195,6 @@ static char *get_local_name(struct file_list *flist,char *name) if (flist->count == 1) return name; - if (!name) - return NULL; - if (do_mkdir(name,0777 & ~orig_umask) != 0) { rprintf(FERROR,"mkdir %s : %s (1)\n",name,strerror(errno)); exit_cleanup(RERR_FILEIO);