The Samba-Bugzilla – Attachment 9237 Details for
Bug 9693
New --time-format option
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch
rsync-time-format.patch (text/plain), 2.18 KB, created by
Michal Luscon (mail bounces back)
on 2013-09-23 12:33:43 UTC
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Michal Luscon (mail bounces back)
Created:
2013-09-23 12:33:43 UTC
Size:
2.18 KB
patch
obsolete
>--- rsync/options.c 2013-02-26 16:52:24.952202605 +0100 >+++ rsync/options.c 2013-02-26 16:58:21.804183435 +0100 >@@ -161,6 +161,7 @@ > char *logfile_name = NULL; > char *logfile_format = NULL; > char *stdout_format = NULL; >+char *time_format = NULL; > char *password_file = NULL; > char *rsync_path = RSYNC_PATH; > char *backup_dir = NULL; >@@ -420,6 +421,7 @@ > rprintf(F," -P same as --partial --progress\n"); > rprintf(F," -i, --itemize-changes output a change-summary for all updates\n"); > rprintf(F," --out-format=FORMAT output updates using the specified FORMAT\n"); >+ rprintf(F," --time-format=FORMAT time output using the specified FORMAT\n"); > rprintf(F," --log-file=FILE log what we're doing to the specified FILE\n"); > rprintf(F," --log-file-format=FMT log updates using the specified FMT\n"); > rprintf(F," --password-file=FILE read daemon-access password from FILE\n"); >@@ -602,6 +604,7 @@ > {"log-file", 0, POPT_ARG_STRING, &logfile_name, 0, 0, 0 }, > {"log-file-format", 0, POPT_ARG_STRING, &logfile_format, 0, 0, 0 }, > {"out-format", 0, POPT_ARG_STRING, &stdout_format, 0, 0, 0 }, >+ {"time-format", 0, POPT_ARG_STRING, &time_format, 0, 0, 0 }, > {"log-format", 0, POPT_ARG_STRING, &stdout_format, 0, 0, 0 }, /* DEPRECATED */ > {"itemize-changes", 'i', POPT_ARG_NONE, 0, 'i', 0, 0 }, > {"no-itemize-changes",0, POPT_ARG_VAL, &itemize_changes, 0, 0, 0 }, >--- rsync/util.c 2011-04-23 00:51:55.000000000 +0200 >+++ rsync/util.c 2013-02-26 17:15:21.000000000 +0100 >@@ -31,6 +31,7 @@ > extern int human_readable; > extern int preserve_xattrs; > extern char *module_dir; >+extern char *time_format; > extern unsigned int module_dirlen; > extern mode_t orig_umask; > extern char *partial_dir; >@@ -1327,7 +1328,11 @@ > char *p; > > #ifdef HAVE_STRFTIME >- strftime(TimeBuf, sizeof TimeBuf - 1, "%Y/%m/%d %H:%M:%S", tm); >+ if (time_format) { >+ strftime(TimeBuf, sizeof TimeBuf - 1, time_format, tm); >+ } else { >+ strftime(TimeBuf, sizeof TimeBuf - 1, "%Y/%m/%d %H:%M:%S", tm); >+ } > #else > strlcpy(TimeBuf, asctime(tm), sizeof TimeBuf); > #endif
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 9693
: 9237