From 8b748aed2a9ab4b964faa5722f7a182a060e475c Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Fri, 9 Nov 2012 22:13:45 +0000 Subject: Support --with-pkgversion and --with-bugurl. --- nss/getent.c | 6 +++--- nss/makedb.c | 9 ++++++--- 2 files changed, 9 insertions(+), 6 deletions(-) (limited to 'nss') diff --git a/nss/getent.c b/nss/getent.c index e88356dd2b..5f8278a839 100644 --- a/nss/getent.c +++ b/nss/getent.c @@ -82,7 +82,7 @@ static int idn_flags = AI_IDN | AI_CANONIDN; static void print_version (FILE *stream, struct argp_state *state) { - fprintf (stream, "getent (GNU %s) %s\n", PACKAGE, VERSION); + fprintf (stream, "getent %s%s\n", PKGVERSION, VERSION); fprintf (stream, gettext ("\ Copyright (C) %s Free Software Foundation, Inc.\n\ This is free software; see the source for copying conditions. There is NO\n\ @@ -962,9 +962,9 @@ more_help (int key, const char *text, void *input) fputs ("\n\n", fp); - fputs (gettext ("\ + fprintf (fp, gettext ("\ For bug reporting instructions, please see:\n\ -.\n"), fp); +%s.\n"), REPORT_BUGS_TO); if (fclose (fp) == 0) return doc; diff --git a/nss/makedb.c b/nss/makedb.c index ccaabdff95..8d7d027b74 100644 --- a/nss/makedb.c +++ b/nss/makedb.c @@ -363,13 +363,16 @@ parse_opt (int key, char *arg, struct argp_state *state) static char * more_help (int key, const char *text, void *input) { + char *tp = NULL; switch (key) { case ARGP_KEY_HELP_EXTRA: /* We print some extra information. */ - return strdup (gettext ("\ + if (asprintf (&tp, gettext ("\ For bug reporting instructions, please see:\n\ -.\n")); +%s.\n"), REPORT_BUGS_TO) < 0) + return NULL; + return tp; default: break; } @@ -380,7 +383,7 @@ For bug reporting instructions, please see:\n\ static void print_version (FILE *stream, struct argp_state *state) { - fprintf (stream, "makedb (GNU %s) %s\n", PACKAGE, VERSION); + fprintf (stream, "makedb %s%s\n", PKGVERSION, VERSION); fprintf (stream, gettext ("\ Copyright (C) %s Free Software Foundation, Inc.\n\ This is free software; see the source for copying conditions. There is NO\n\ -- cgit 1.4.1