Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Must use STRUCT_STAT not "struct stat" to be compatible with other
[rsync/rsync.git]
/
util.c
diff --git
a/util.c
b/util.c
index
5eebe37
..
e6d127c
100644
(file)
--- a/
util.c
+++ b/
util.c
@@
-86,7
+86,7
@@
int fd_pair(int fd[2])
void print_child_argv(char **cmd)
{
void print_child_argv(char **cmd)
{
- rprintf(FINFO,
RSYNC_NAME ": open
connection using ");
+ rprintf(FINFO,
"opening
connection using ");
for (; *cmd; cmd++) {
/* Look for characters that ought to be quoted. This
* is not a great quoting algorithm, but it's
for (; *cmd; cmd++) {
/* Look for characters that ought to be quoted. This
* is not a great quoting algorithm, but it's
@@
-240,10
+240,18
@@
void overflow(char *str)
-int set_modtime(char *fname,time_t modtime)
+int set_modtime(char *fname,
time_t modtime)
{
extern int dry_run;
{
extern int dry_run;
- if (dry_run) return 0;
+ if (dry_run)
+ return 0;
+
+ if (verbose > 2) {
+ rprintf(FINFO, "set modtime of %s to (%ld) %s",
+ fname, (long) modtime,
+ asctime(localtime(&modtime)));
+ }
+
{
#ifdef HAVE_UTIMBUF
struct utimbuf tbuf;
{
#ifdef HAVE_UTIMBUF
struct utimbuf tbuf;