* Copyright (C) 1996-2000 Andrew Tridgell
* Copyright (C) 1996 Paul Mackerras
* Copyright (C) 2002 Martin Pool
- * Copyright (C) 2003-2013 Wayne Davison
+ * Copyright (C) 2003-2018 Wayne Davison
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
#include "rsync.h"
+extern int dry_run;
extern int am_server;
extern int am_daemon;
extern int am_receiver;
who_am_i(), code, file, line);
}
- /* FALLTHROUGH */
#include "case_N.h"
switch_step++;
}
}
- /* FALLTHROUGH */
#include "case_N.h"
switch_step++;
}
}
- /* FALLTHROUGH */
#include "case_N.h"
switch_step++;
if (!exit_code && !code)
io_flush(FULL_FLUSH);
- /* FALLTHROUGH */
#include "case_N.h"
switch_step++;
|| am_daemon || (logfile_name && (am_server || !INFO_GTE(STATS, 1))))
log_exit(exit_code, exit_file, exit_line);
- /* FALLTHROUGH */
#include "case_N.h"
switch_step++;
if (DEBUG_GTE(EXIT, 1)) {
rprintf(FINFO,
"[%s] _exit_cleanup(code=%d, file=%s, line=%d): "
- "about to call exit(%d)\n",
- who_am_i(), first_code, exit_file, exit_line, exit_code);
+ "about to call exit(%d)%s\n",
+ who_am_i(), first_code, exit_file, exit_line, exit_code,
+ dry_run ? " (DRY RUN)" : "");
}
- /* FALLTHROUGH */
#include "case_N.h"
switch_step++;
noop_io_until_death();
}
- /* FALLTHROUGH */
#include "case_N.h"
switch_step++;