Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F164980121
D41489.id126131.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
746 B
Referenced Files
None
Subscribers
None
D41489.id126131.diff
View Options
diff --git a/contrib/netcat/netcat.c b/contrib/netcat/netcat.c
--- a/contrib/netcat/netcat.c
+++ b/contrib/netcat/netcat.c
@@ -167,10 +167,10 @@
struct addrinfo proxyhints;
char unix_dg_tmp_socket_buf[UNIX_DG_TMP_SOCKET_SIZE];
struct option longopts[] = {
+ { "crlf", no_argument, &FreeBSD_crlf, 1 },
{ "no-tcpopt", no_argument, &FreeBSD_Oflag, 1 },
{ "sctp", no_argument, &FreeBSD_sctp, 1 },
{ "tun", required_argument, NULL, FREEBSD_TUN },
- { "crlf", no_argument, &FreeBSD_crlf, 1 },
{ NULL, 0, NULL, 0 }
};
@@ -1056,7 +1056,7 @@
if (crlf) {
lf = memchr(buf, '\n', *bufpos);
- if (lf && (lf == buf || *(lf-1) != '\r'))
+ if (lf && (lf == buf || *(lf - 1) != '\r'))
n = lf - buf;
else
lf = NULL;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Aug 6, 5:12 AM (17 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36001896
Default Alt Text
D41489.id126131.diff (746 B)
Attached To
Mode
D41489: netcat: add --crlf to convert LF into CRLF
Attached
Detach File
Event Timeline
Log In to Comment