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
6d952fdb
Commit
6d952fdb
authored
Dec 13, 2009
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change a variable name in read_a_msg().
parent
870cf552
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
16 deletions
+16
-16
io.c
io.c
+16
-16
No files found.
io.c
View file @
6d952fdb
...
...
@@ -1347,7 +1347,7 @@ void stop_flist_forward(void)
/* Read a message from a multiplexed source. */
static
void
read_a_msg
(
void
)
{
char
line
[
BIGPATHBUFLEN
];
char
data
[
BIGPATHBUFLEN
];
int
tag
,
val
;
size_t
msg_bytes
;
...
...
@@ -1402,11 +1402,11 @@ static void read_a_msg(void)
maybe_send_keepalive
();
break
;
case
MSG_DELETED
:
if
(
msg_bytes
>=
sizeof
line
)
if
(
msg_bytes
>=
sizeof
data
)
goto
overflow
;
if
(
am_generator
)
{
raw_read_buf
(
line
,
msg_bytes
);
send_msg
(
MSG_DELETED
,
line
,
msg_bytes
,
1
);
raw_read_buf
(
data
,
msg_bytes
);
send_msg
(
MSG_DELETED
,
data
,
msg_bytes
,
1
);
break
;
}
#ifdef ICONV_OPTION
...
...
@@ -1416,7 +1416,7 @@ static void read_a_msg(void)
int
add_null
=
0
;
int
flags
=
ICB_INCLUDE_BAD
|
ICB_INIT
;
INIT_CONST_XBUF
(
outbuf
,
line
);
INIT_CONST_XBUF
(
outbuf
,
data
);
INIT_XBUF
(
inbuf
,
ibuf
,
0
,
(
size_t
)
-
1
);
while
(
msg_bytes
)
{
...
...
@@ -1443,13 +1443,13 @@ static void read_a_msg(void)
msg_bytes
=
outbuf
.
len
;
}
else
#endif
raw_read_buf
(
line
,
msg_bytes
);
raw_read_buf
(
data
,
msg_bytes
);
/* A directory name was sent with the trailing null */
if
(
msg_bytes
>
0
&&
!
line
[
msg_bytes
-
1
])
log_delete
(
line
,
S_IFDIR
);
if
(
msg_bytes
>
0
&&
!
data
[
msg_bytes
-
1
])
log_delete
(
data
,
S_IFDIR
);
else
{
line
[
msg_bytes
]
=
'\0'
;
log_delete
(
line
,
S_IFREG
);
data
[
msg_bytes
]
=
'\0'
;
log_delete
(
data
,
S_IFREG
);
}
break
;
case
MSG_SUCCESS
:
...
...
@@ -1488,7 +1488,7 @@ static void read_a_msg(void)
case
MSG_ERROR
:
case
MSG_ERROR_XFER
:
case
MSG_WARNING
:
if
(
msg_bytes
>=
sizeof
line
)
{
if
(
msg_bytes
>=
sizeof
data
)
{
overflow:
rprintf
(
FERROR
,
"multiplexing overflow %d:%lu [%s%s]
\n
"
,
...
...
@@ -1496,12 +1496,12 @@ static void read_a_msg(void)
inc_recurse
?
"/inc"
:
""
);
exit_cleanup
(
RERR_STREAMIO
);
}
raw_read_buf
(
line
,
msg_bytes
);
rwrite
((
enum
logcode
)
tag
,
line
,
msg_bytes
,
!
am_generator
);
raw_read_buf
(
data
,
msg_bytes
);
rwrite
((
enum
logcode
)
tag
,
data
,
msg_bytes
,
!
am_generator
);
if
(
first_message
)
{
if
(
list_only
&&
!
am_sender
&&
tag
==
1
&&
msg_bytes
<
sizeof
line
)
{
line
[
msg_bytes
]
=
'\0'
;
check_for_d_option_error
(
line
);
if
(
list_only
&&
!
am_sender
&&
tag
==
1
&&
msg_bytes
<
sizeof
data
)
{
data
[
msg_bytes
]
=
'\0'
;
check_for_d_option_error
(
data
);
}
first_message
=
0
;
}
...
...
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