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
528bfcd7
Commit
528bfcd7
authored
May 28, 1998
by
Andrew Tridgell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cosmetic fix. don't display a EOF error when displaying just the motd
from a rsync server
parent
a1e13a93
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
io.c
io.c
+12
-2
No files found.
io.c
View file @
528bfcd7
...
...
@@ -32,10 +32,11 @@ static int io_multiplexing_in;
static
int
multiplex_in_fd
;
static
int
multiplex_out_fd
;
static
time_t
last_io
;
static
int
eof_error
=
1
;
extern
int
verbose
;
extern
int
io_timeout
;
int64
write_total
(
void
)
{
return
total_written
;
...
...
@@ -119,7 +120,9 @@ static int read_timeout(int fd, char *buf, int len)
}
if
(
n
==
0
)
{
if
(
eof_error
)
{
rprintf
(
FERROR
,
"EOF in read_timeout
\n
"
);
}
exit_cleanup
(
1
);
}
...
...
@@ -482,8 +485,12 @@ void write_byte(int f,unsigned char c)
int
read_line
(
int
f
,
char
*
buf
,
int
maxlen
)
{
eof_error
=
0
;
while
(
maxlen
)
{
buf
[
0
]
=
0
;
read_buf
(
f
,
buf
,
1
);
if
(
buf
[
0
]
==
0
)
return
0
;
if
(
buf
[
0
]
==
'\n'
)
{
buf
[
0
]
=
0
;
break
;
...
...
@@ -497,6 +504,9 @@ int read_line(int f, char *buf, int maxlen)
*
buf
=
0
;
return
0
;
}
eof_error
=
1
;
return
1
;
}
...
...
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