Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liblongpath-rsync
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liblongpath
liblongpath-rsync
Commits
fc2d6fab
Commit
fc2d6fab
authored
Jun 11, 2013
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set number_separator the first time it gets used.
parent
a508e88f
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
10 additions
and
21 deletions
+10
-21
compat.c
lib/compat.c
+10
-1
options.c
options.c
+0
-10
t_stub.c
t_stub.c
+0
-1
tls.c
tls.c
+0
-7
trimslash.c
trimslash.c
+0
-1
wildtest.c
wildtest.c
+0
-1
No files found.
lib/compat.c
View file @
fc2d6fab
...
...
@@ -22,7 +22,7 @@
#include "rsync.h"
#include "itypes.h"
extern
char
number_separator
;
static
char
number_separator
;
#ifndef HAVE_STRDUP
char
*
strdup
(
char
*
s
)
...
...
@@ -190,6 +190,15 @@ char *do_big_num(int64 num, int human_flag, const char *fract)
char
*
s
;
int
len
,
negated
;
if
(
human_flag
&&
!
number_separator
)
{
char
buf
[
32
];
snprintf
(
buf
,
sizeof
buf
,
"%f"
,
3
.
14
);
if
(
strchr
(
buf
,
'.'
)
!=
NULL
)
number_separator
=
','
;
else
number_separator
=
'.'
;
}
n
=
(
n
+
1
)
%
(
sizeof
bufs
/
sizeof
bufs
[
0
]);
if
(
human_flag
>
1
)
{
...
...
options.c
View file @
fc2d6fab
...
...
@@ -123,7 +123,6 @@ int checksum_seed = 0;
int
inplace
=
0
;
int
delay_updates
=
0
;
long
block_size
=
0
;
/* "long" because popt can't set an int32. */
char
number_separator
;
char
*
skip_compress
=
NULL
;
item_list
dparam_list
=
EMPTY_ITEM_LIST
;
...
...
@@ -1870,15 +1869,6 @@ int parse_arguments(int *argc_p, const char ***argv_p)
verbose
>
1
?
"stats3"
:
"stats2"
,
DEFAULT_PRIORITY
);
}
if
(
human_readable
)
{
char
buf
[
32
];
snprintf
(
buf
,
sizeof
buf
,
"%f"
,
3
.
14
);
if
(
strchr
(
buf
,
'.'
)
!=
NULL
)
number_separator
=
','
;
else
number_separator
=
'.'
;
}
#ifdef ICONV_OPTION
if
(
iconv_opt
&&
protect_args
!=
2
)
{
if
(
!
am_server
&&
strcmp
(
iconv_opt
,
"-"
)
==
0
)
...
...
t_stub.c
View file @
fc2d6fab
...
...
@@ -30,7 +30,6 @@ int module_dirlen = 0;
int
preserve_acls
=
0
;
int
preserve_times
=
0
;
int
preserve_xattrs
=
0
;
char
number_separator
=
','
;
char
*
partial_dir
;
char
*
module_dir
;
filter_rule_list
daemon_filter_list
;
...
...
tls.c
View file @
fc2d6fab
...
...
@@ -51,7 +51,6 @@ int link_owner = 0;
int
nsec_times
=
0
;
int
preserve_perms
=
0
;
int
preserve_executability
=
0
;
char
number_separator
;
#ifdef SUPPORT_XATTRS
...
...
@@ -255,12 +254,6 @@ main(int argc, char *argv[])
if
(
!
extra_args
||
*
extra_args
==
NULL
)
tls_usage
(
1
);
snprintf
(
buf
,
sizeof
buf
,
"%f"
,
3
.
14
);
if
(
strchr
(
buf
,
'.'
)
!=
NULL
)
number_separator
=
','
;
else
number_separator
=
'.'
;
for
(;
*
extra_args
;
extra_args
++
)
list_file
(
*
extra_args
);
poptFreeContext
(
pc
);
...
...
trimslash.c
View file @
fc2d6fab
...
...
@@ -28,7 +28,6 @@ int read_only = 1;
int
list_only
=
0
;
int
preserve_perms
=
0
;
int
preserve_executability
=
0
;
char
number_separator
=
','
;
int
main
(
int
argc
,
char
**
argv
)
...
...
wildtest.c
View file @
fc2d6fab
...
...
@@ -31,7 +31,6 @@ int fnmatch_errors = 0;
#endif
int
wildmatch_errors
=
0
;
char
number_separator
=
','
;
typedef
char
bool
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment