Package: netcat-openbsd
User: [email protected]
Usertags: origin-ubuntu lucid ubuntu-patch
Version: 1.89-3
Severity: normal
Tags: patch

In Ubuntu, we've applied the attached patch to achieve the following:

 * Log "Connection to ..." messages to stderr (LP: #519210)

We thought you might be interested in doing the same.


The second attached patch should match Debian's version scheme.

Kind regards,
Stefan Haller
diff -u netcat-openbsd-1.89/debian/changelog 
netcat-openbsd-1.89/debian/changelog
--- netcat-openbsd-1.89/debian/changelog
+++ netcat-openbsd-1.89/debian/changelog
@@ -1,3 +1,9 @@
+netcat-openbsd (1.89-3ubuntu2) lucid; urgency=low
+
+  * Log "Connection to ..." messages to stderr (LP: #519210)
+
+ -- Stefan Haller <[email protected]>  Tue, 09 Feb 2010 10:42:03 +0100
+
 netcat-openbsd (1.89-3ubuntu1) intrepid; urgency=low
 
   * Merge from debian unstable.
diff -u netcat-openbsd-1.89/debian/patches/series 
netcat-openbsd-1.89/debian/patches/series
--- netcat-openbsd-1.89/debian/patches/series
+++ netcat-openbsd-1.89/debian/patches/series
@@ -15,0 +16 @@
+verbose-message-to-stderr.patch
only in patch2:
unchanged:
--- netcat-openbsd-1.89.orig/debian/patches/verbose-message-to-stderr.patch
+++ netcat-openbsd-1.89/debian/patches/verbose-message-to-stderr.patch
@@ -0,0 +1,17 @@
+Index: netcat-openbsd-1.89/netcat.c
+===================================================================
+--- netcat-openbsd-1.89.orig/netcat.c  2010-02-09 10:29:21.000000000 +0100
++++ netcat-openbsd-1.89/netcat.c       2010-02-09 10:29:45.000000000 +0100
+@@ -421,9 +421,9 @@ main(int argc, char *argv[])
+                                           uflag ? "udp" : "tcp");
+                               }
+ 
+-                              printf("Connection to %s %s port [%s/%s] 
succeeded!\n",
+-                                  host, portlist[i], uflag ? "udp" : "tcp",
+-                                  sv ? sv->s_name : "*");
++                              fprintf(stderr, "Connection to %s %s port 
[%s/%s] "
++                                      "succeeded!\n", host, portlist[i],
++                                      uflag ? "udp" : "tcp", sv ? sv->s_name 
: "*");
+                       }
+                       if (!zflag)
+                               readwrite(s);
diff -u netcat-openbsd-1.89/debian/changelog 
netcat-openbsd-1.89/debian/changelog
--- netcat-openbsd-1.89/debian/changelog
+++ netcat-openbsd-1.89/debian/changelog
@@ -1,3 +1,9 @@
+netcat-openbsd (1.89-4) unstable; urgency=low
+
+  * Log "Connection to ..." messages to stderr (LP: #519210)
+
+ -- Stefan Haller <[email protected]>  Tue, 09 Feb 2010 10:42:03 +0100
+
 netcat-openbsd (1.89-3ubuntu1) intrepid; urgency=low
 
   * Merge from debian unstable.
diff -u netcat-openbsd-1.89/debian/patches/series 
netcat-openbsd-1.89/debian/patches/series
--- netcat-openbsd-1.89/debian/patches/series
+++ netcat-openbsd-1.89/debian/patches/series
@@ -15,0 +16 @@
+verbose-message-to-stderr.patch
only in patch2:
unchanged:
--- netcat-openbsd-1.89.orig/debian/patches/verbose-message-to-stderr.patch
+++ netcat-openbsd-1.89/debian/patches/verbose-message-to-stderr.patch
@@ -0,0 +1,17 @@
+Index: netcat-openbsd-1.89/netcat.c
+===================================================================
+--- netcat-openbsd-1.89.orig/netcat.c  2010-02-09 10:29:21.000000000 +0100
++++ netcat-openbsd-1.89/netcat.c       2010-02-09 10:29:45.000000000 +0100
+@@ -421,9 +421,9 @@ main(int argc, char *argv[])
+                                           uflag ? "udp" : "tcp");
+                               }
+ 
+-                              printf("Connection to %s %s port [%s/%s] 
succeeded!\n",
+-                                  host, portlist[i], uflag ? "udp" : "tcp",
+-                                  sv ? sv->s_name : "*");
++                              fprintf(stderr, "Connection to %s %s port 
[%s/%s] "
++                                      "succeeded!\n", host, portlist[i],
++                                      uflag ? "udp" : "tcp", sv ? sv->s_name 
: "*");
+                       }
+                       if (!zflag)
+                               readwrite(s);

Reply via email to