Your message dated Tue, 21 Jan 2025 18:52:34 +0000
with message-id <[email protected]>
and subject line Bug#948182: fixed in wrapsrv 1.0.0-2
has caused the Debian Bug report #948182,
regarding wrapsrv: built-in help is missing important information
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
948182: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=948182
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: wrapsrv
Version: 1.0.0-1+b2
Severity: minor
Tags: patch

Dear Maintainer,
this patch improves the integrated help, so novice users will able
to use this tool. The patch also slightly improves performance by removing an
unnecessary call and corrects the use of system streams.

Regards,
Lorenzo

-- System Information:
Debian Release: 10.2
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-6-amd64 (SMP w/4 CPU cores)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_WARN, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8), 
LANGUAGE=it_IT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages wrapsrv depends on:
ii  libc6  2.28-10

wrapsrv recommends no packages.

wrapsrv suggests no packages.

-- no debconf information
Description: add missing fundamental information in the help.
 This patch completes the guide by adding essential information for new users.
 It also slightly improves performance and corrects the use of standard
 system streams (stderr, stdout).
Author: Lorenzo L. Ancora <[email protected]>
Last-Update: 2020-01-04

--- wrapsrv-1.0.0.orig/wrapsrv.c
+++ wrapsrv-1.0.0/wrapsrv.c
@@ -39,6 +39,14 @@
 #define NS_MAXMSG 65535
 #endif
 
+#define USAGE_TXT "Usage: wrapsrv <SRVNAME> <COMMAND> [COMMAND OPTIONS]\n\n\
+Use all matching DNS SRV (RFC 2782) records to build/execute command lines.\n\
+SRVNAME is the symbolic name of the service (case insensitive).\n\
+%%h and %%p sequences in COMMAND will be converted to hostname and port.\n\n\
+Example (URL building and printing):\n\t\
+wrapsrv _ftps._tcp.domain.example echo ftps://%%h:%%p/\n\n\
+Copyright (c) Farsight Security, Inc.; licensed under 'Apache License 2.0'.\n"
+
 /* Data types. */
 
 struct srv {
@@ -70,7 +78,7 @@ static struct srv *next_tuple(void);
 static void free_tuples(void);
 static void insert_tuple(char *, uint16_t, uint16_t, uint16_t);
 static void parse_answer_section(ns_msg *);
-static void usage(void);
+static void usage(FILE*);
 
 #ifdef DEBUG
 static void print_tuples(void);
@@ -349,10 +357,8 @@ do_cmd(struct srv *se, int argc, char **
 }
 
 static void
-usage(void) {
-       fprintf(stderr, "Usage: wrapsrv <SRVNAME> <COMMAND> [OPTION]...\n");
-       fprintf(stderr, "%%h and %%p sequences will be converted to "
-               "hostname and port.\n");
+usage(FILE* stream) {
+       fprintf(stream, USAGE_TXT);
        exit(EXIT_FAILURE);
 }
 
@@ -367,8 +373,10 @@ main(int argc, char **argv) {
        struct timeval tv;
        unsigned int seed = 0;
 
-       if (argc < 3)
-               usage();
+       if (argc <= 1)
+               usage(stdout);
+       else if (argc < 3)
+               usage(stderr);
 
        ISC_LIST_INIT(prio_list);
 

--- End Message ---
--- Begin Message ---
Source: wrapsrv
Source-Version: 1.0.0-2
Done: Andreas Tille <[email protected]>

We believe that the bug you reported is fixed in the latest version of
wrapsrv, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Andreas Tille <[email protected]> (supplier of updated wrapsrv package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Tue, 21 Jan 2025 19:15:38 +0100
Source: wrapsrv
Architecture: source
Version: 1.0.0-2
Distribution: unstable
Urgency: medium
Maintainer: Package Salvaging Team <[email protected]>
Changed-By: Andreas Tille <[email protected]>
Closes: 948182 988266 1020866 1093694
Changes:
 wrapsrv (1.0.0-2) unstable; urgency=medium
 .
   * Team upload.
 .
   [ Andreas Tille ]
   * Maintain package in Salvage Team
     Closes: #1093694
   * Add Homepage
   * Add watch file
   * d/rules: short dh
     Closes: #988266
   * debhelper-compat = 13
   * d/copyright:
      - DEP5
      - Review
   * Standards-Version: 4.7.0 (routine-update)
   * Remove trailing whitespace in debian/control (routine-update)
 .
   [ Lorenzo L. Ancora ]
   * Add missing fundamental information in the help.
     Closes: #948182
 .
   [ Vagrant Cascadian ]
   * Pass --debug-prefix-map to avoid embedding build directory.
     Closes: #1020866
Checksums-Sha1:
 799d879e4bd3b5cdfc18647fc66888d248a2089e 1917 wrapsrv_1.0.0-2.dsc
 6bb1a5632166a2b0d763a736bfe7139bd2cc8ac5 3508 wrapsrv_1.0.0-2.debian.tar.xz
 13919fb3e7257261553d91a7bc71dc82b2fa3a2a 6115 wrapsrv_1.0.0-2_amd64.buildinfo
Checksums-Sha256:
 6794145af2049a5a804a1369f01146d1fe1c5b0f2fdb680f938609bcaf63ceea 1917 
wrapsrv_1.0.0-2.dsc
 cdbbf50006ed36f0c19c4f84dab7d042fbf8d7dc813d281bcc101f7ca07106e2 3508 
wrapsrv_1.0.0-2.debian.tar.xz
 716de407c8e03a4030094e419ed2ce90cc8eafb0b5234d448bde98f3a7f00f09 6115 
wrapsrv_1.0.0-2_amd64.buildinfo
Files:
 74159449c5818fa4b4f9db6312e961a0 1917 net optional wrapsrv_1.0.0-2.dsc
 2fe453736912e4e9c93bb5b92223ffa2 3508 net optional 
wrapsrv_1.0.0-2.debian.tar.xz
 95671a4099f3e6646e84da959803edca 6115 net optional 
wrapsrv_1.0.0-2_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJFBAEBCgAvFiEE8fAHMgoDVUHwpmPKV4oElNHGRtEFAmeP5iMRHHRpbGxlQGRl
Ymlhbi5vcmcACgkQV4oElNHGRtHBzg//XOwvKOvG5QmP5l+1I4Ft+hvI/6RQIdCi
snfDgPuwuq6Wc5CaU/n0qJz97SBfhHEe81hOEuvUsJA6+G++MT9Jmfso16meZH7a
htQzkspiDg5MwVn+hjm++q1jPWZTW8AqBJ7BNHfKIcn/jgjOgd040Cgc8cNsJoAn
QRuDTp0SAuOtQNXo2AAZ6DW87FCV9Qm9KiPC8HHK4V5ZQFrChkNBlRHKEupmaPcT
Hp9ydDa9wE4flzvSvwSkWVn59CunvCATKlo1Ky/Hn1Dw0iT8Xa3c2IpDLt7Tx3l2
8EfzrNY6VjK9fTs9Cv4XXHKVVFf/Mjm9bExpqGrUzybP3FbYwMLWkprolF6d9bsf
sPXdVaD1O18KJGg4CMwEErADnItJBDaDkRtxCy6hzXjGYU1okM5ugwJGQcW2dPAI
IAfa6D1hnSRIcEsnpem5gCIpp9goDsw4tiEYeFTIntR4m1298nf67R1YFCnhWuB5
wO35+KY2kJymjtFDjhNwUXLe31f/lqE3cjXvTIEEkBelxqGAOYpwfk8nkz2/Sxii
CFaSd8xiq6h0Kxb3GWYlwetdORxXpbqAjPekXpe24pcHJh3cN96sro4MEH5qYhGP
DEtmBTTX+4f5UP+yKgFBsYeKTpg7Q6R5Bbc4C8uM/ldX0q9nOYi4JMX17Xl6fhqF
d8Af1dW9v7g=
=I0dZ
-----END PGP SIGNATURE-----

Attachment: pgpmwvqYcTyZv.pgp
Description: PGP signature


--- End Message ---

Reply via email to