diff options
| author | Valery Kartel <valery.kartel@gmail.com> | 2015-09-24 16:17:31 +0300 |
|---|---|---|
| committer | Sören Tempel <soeren+git@soeren-tempel.net> | 2015-09-29 16:13:11 +0200 |
| commit | fa6505dc69a2a6945324744d8134de0b186be808 (patch) | |
| tree | 51ed8fedb90f372a5b783b2a2a7d2af6f7f890b2 /testing/csync2/longlong-format.patch | |
| parent | 48cf8ee4d00068967848c3c9deb33b6c996c1697 (diff) | |
| download | aports-fa6505dc69a2a6945324744d8134de0b186be808.tar.bz2 aports-fa6505dc69a2a6945324744d8134de0b186be808.tar.xz | |
testing/csync2: upgrade to 2.0
Diffstat (limited to 'testing/csync2/longlong-format.patch')
| -rw-r--r-- | testing/csync2/longlong-format.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/testing/csync2/longlong-format.patch b/testing/csync2/longlong-format.patch new file mode 100644 index 0000000000..a37488d7de --- /dev/null +++ b/testing/csync2/longlong-format.patch @@ -0,0 +1,31 @@ +--- old/checktxt.c ++++ new/checktxt.c +@@ -49,7 +49,7 @@ + xxprintf("v1"); + + if ( !S_ISLNK(st->st_mode) && !S_ISDIR(st->st_mode) ) +- xxprintf(":mtime=%Ld", ign_mtime ? (long long)0 : (long long)st->st_mtime); ++ xxprintf(":mtime=%lld", ign_mtime ? (long long)0 : (long long)st->st_mtime); + + if ( !csync_ignore_mod ) + xxprintf(":mode=%d", (int)st->st_mode); +@@ -61,7 +61,7 @@ + xxprintf(":gid=%d", (int)st->st_gid); + + if ( S_ISREG(st->st_mode) ) +- xxprintf(":type=reg:size=%Ld", (long long)st->st_size); ++ xxprintf(":type=reg:size=%lld", (long long)st->st_size); + + if ( S_ISDIR(st->st_mode) ) + xxprintf(":type=dir"); +--- old/update.c ++++ new/update.c +@@ -469,7 +469,7 @@ + + skip_action: + if ( !S_ISLNK(st.st_mode) ) { +- conn_printf("SETIME %s %s %Ld\n", ++ conn_printf("SETIME %s %s %lld\n", + url_encode(key), url_encode(filename), + (long long)st.st_mtime); + last_conn_status = read_conn_status(filename, peername); |
