Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Commits
05b3074f
Commit
05b3074f
authored
May 21, 2021
by
Deucе
👌🏾
Browse files
Send CRLF instead of the specified CR on a file status.
parent
04017243
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
src/syncterm/ripper.c
src/syncterm/ripper.c
+8
-8
No files found.
src/syncterm/ripper.c
View file @
05b3074f
...
...
@@ -12491,35 +12491,35 @@ do_rip_command(int level, int sublevel, int cmd, const char *rawargs)
break;
case 1:
if (access(cache_path, R_OK))
conn_send("0\r", 2, 1000);
conn_send("0\r
\n
", 2, 1000);
else
conn_send("1\r", 2, 1000);
conn_send("1\r
\n
", 2, 1000);
break;
case 2:
if (stat(cache_path, &st))
conn_send("0\r", 2, 1000);
conn_send("0\r
\n
", 2, 1000);
else {
sprintf(str, "1.%" PRIdOFF "\n", st.st_size);
sprintf(str, "1.%" PRIdOFF "\
r\
n", st.st_size);
conn_send(str, strlen(str), 1000);
}
break;
case 3:
if (stat(cache_path, &st))
conn_send("0\r", 2, 1000);
conn_send("0\r
\n
", 2, 1000);
else {
localtime_r(&st.st_atime, &tm);
strftime(dstr, sizeof(dstr), "%m/%d/&y.%H:%M:%S", &tm);
sprintf(str, "1.%" PRIdOFF ".%s\n", st.st_size, dstr);
sprintf(str, "1.%" PRIdOFF ".%s\
r\
n", st.st_size, dstr);
conn_send(str, strlen(str), 1000);
}
break;
case 4:
if (stat(cache_path, &st))
conn_send("0\r", 2, 1000);
conn_send("0\r
\n
", 2, 1000);
else {
localtime_r(&st.st_atime, &tm);
strftime(dstr, sizeof(dstr), "%m/%d/&y.%H:%M:%S", &tm);
sprintf(str, "1.%s.%" PRIdOFF ".%s\n", &args[6], st.st_size, dstr);
sprintf(str, "1.%s.%" PRIdOFF ".%s\
r\
n", &args[6], st.st_size, dstr);
conn_send(str, strlen(str), 1000);
}
break;
...
...
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