<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>4345</bug_id>
          
          <creation_ts>2004-06-11 15:03:30 +0400</creation_ts>
          <short_desc>netcat: wrong program name in usage text</short_desc>
          <delta_ts>2009-05-10 09:32:06 +0400</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>netcat</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Pavel S. Khmelinsky">hmepas</reporter>
          <assigned_to name="placeholder@altlinux.org">placeholder</assigned_to>
          <cc>glebfm</cc>
    
    <cc>ldv</cc>
    
    <cc>placeholder</cc>
    
    <cc>vt</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>15046</commentid>
    <comment_count>0</comment_count>
    <who name="Pavel S. Khmelinsky">hmepas</who>
    <bug_when>2004-06-11 15:03:30 +0400</bug_when>
    <thetext>$ netcat
usage: nc [-46Uhklnrtuvz] [-i interval] [-p source port]
          [-s ip address] [-w timeout] [-X vers] [-x proxy address [:port]]
          [hostname] [port[s...]]

Такая вот постенькая бага, лечится элементарно патчем:
--- nc-3.2/usr.bin/nc/netcat.c.orig     2004-06-11 15:02:06 +0400
+++ nc-3.2/usr.bin/nc/netcat.c  2004-06-11 15:02:13 +0400
@@ -76,6 +76,8 @@
 int family = AF_INET;
 char *portlist[PORT_MAX];
 
+char *progname;
+
 ssize_t        atomicio(ssize_t (*)(), int, void *, size_t);
 void   atelnet(int, unsigned char *, unsigned int);
 void   build_ports(char *);
@@ -103,6 +105,8 @@
        char *proxyhost = &quot;&quot;, *proxyport = NULL;
        struct addrinfo proxyhints;
 
+       progname=argv[0];
+
        ret = 1;
        s = 0;
        socksv = 5;
@@ -756,7 +760,7 @@
 void
 usage(int ret)
 {
-       fprintf(stderr, &quot;usage: nc [-46Uhklnrtuvz] [-i interval] [-p source
port]\n&quot;);
+       fprintf(stderr, &quot;usage: %s [-46Uhklnrtuvz] [-i interval] [-p source
port]\n&quot;, progname);
        fprintf(stderr, &quot;\t  [-s ip address] [-w timeout] [-X vers] [-x proxy
address [:port]]\n&quot;);
        fprintf(stderr, &quot;\t  [hostname] [port[s...]]\n&quot;);
        if (ret)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15666</commentid>
    <comment_count>1</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2004-06-27 04:04:41 +0400</bug_when>
    <thetext>Исправить надо, но не таким патчем.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16322</commentid>
    <comment_count>2</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2004-07-02 18:14:41 +0400</bug_when>
    <thetext>Fixed in netcat-3.2-alt2</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>