diff options
author | Antti-Juhani Kaijanaho <ajk@debian.org> | 2011-07-23 16:36:42 +0300 |
---|---|---|
committer | Antti-Juhani Kaijanaho <ajk@debian.org> | 2011-07-23 16:36:42 +0300 |
commit | 4e1f1ef25e417e842189ad618c13d456dd029711 (patch) | |
tree | f756893e8b0ddf808f5a2d2c3283a4cc0b3f95ea | |
parent | 861dc684241e6ba7779a01ec44bedfe513ad0356 (diff) | |
parent | 225f7827155d61c26d29365f887588f3b2b3dc9a (diff) | |
download | dctrl-tools-4e1f1ef25e417e842189ad618c13d456dd029711.tar.gz |
Merge branch 'merge_2.18ubuntu1'
* merge_2.18ubuntu1:
Importing 2.18ubuntu1
Conflicts:
debian/changelog
-rw-r--r-- | debian/changelog | 12 | ||||
-rw-r--r-- | grep-dctrl/rc.c | 18 | ||||
-rw-r--r-- | join-dctrl/join-dctrl.c | 2 | ||||
-rw-r--r-- | lib/msg.h | 8 |
4 files changed, 25 insertions, 15 deletions
diff --git a/debian/changelog b/debian/changelog index 6e2bc05..e8f9ca0 100644 --- a/debian/changelog +++ b/debian/changelog @@ -5,7 +5,17 @@ dctrl-tools (2.19) UNRELEASED; urgency=low * Makes manpages translatable (using po4a) * Fix example in manpage (closes: #589827) - -- Antti-Juhani Kaijanaho <ajk@debian.org> Sun, 13 Mar 2011 14:26:29 +0200 + [ Antti-Juhani Kaijanaho ] + * Merge 2.18ubuntu1 + + -- Antti-Juhani Kaijanaho <ajk@debian.org> Sat, 23 Jul 2011 16:36:19 +0300 + +dctrl-tools (2.18ubuntu1) oneiric; urgency=low + + * lib/msg.h, grep-dctrl/rc.c, join-dctrl/join-dctrl.c: Pass the arguments to + message() in the right order (fixes FTBFS; lp: #774391, Closes: #624707) + + -- Michael Bienia <geser@ubuntu.com> Mon, 02 May 2011 08:25:34 +0100 dctrl-tools (2.18) unstable; urgency=low diff --git a/grep-dctrl/rc.c b/grep-dctrl/rc.c index a575135..5cc5cf1 100644 --- a/grep-dctrl/rc.c +++ b/grep-dctrl/rc.c @@ -64,14 +64,14 @@ static bool perms_ok(char const * fname, int fd) return false; } if (stat.st_uid != 0 && stat.st_uid != getuid()) { - message(L_IMPORTANT, _("not owned by you or root, ignoring"), - fname); + message(L_IMPORTANT, fname, + _("not owned by you or root, ignoring")); return false; } if ((stat.st_mode & (S_IWGRP | S_IWOTH)) != 0) { - message(L_IMPORTANT, _("write permissions for " - "group or others, ignoring"), - fname); + message(L_IMPORTANT, fname, + _("write permissions for " + "group or others, ignoring")); return false; } return true; @@ -109,11 +109,11 @@ struct ifile find_ifile_by_exename(const char * exename, const char * rcfname) return (struct ifile){ .mode = m_error, .s = 0 }; } - message(L_INFORMATIONAL, _("reading config file"), fname); + message(L_INFORMATIONAL, fname, _("reading config file")); f = fopen(fname, "r"); if (f == 0) { - message(L_INFORMATIONAL, strerror(errno), fname); + message(L_INFORMATIONAL, fname, "%s", strerror(errno)); return (struct ifile){ .mode = m_error, .s = 0 }; } @@ -136,8 +136,8 @@ struct ifile find_ifile_by_exename(const char * exename, const char * rcfname) line = getaline (f); if (line == 0) { - message(L_FATAL, _("read failure or out of memory"), - fname); + message(L_FATAL, fname, + _("read failure or out of memory")); fail(); } diff --git a/join-dctrl/join-dctrl.c b/join-dctrl/join-dctrl.c index 426ef9a..1830b41 100644 --- a/join-dctrl/join-dctrl.c +++ b/join-dctrl/join-dctrl.c @@ -91,7 +91,7 @@ static error_t parse_opt (int key, char * arg, struct argp_state * state) for (size_t i = 0; i < 2; i++) { if (key == the_other_key[i]) continue; if (args->join_field[0] != NULL) { - message(L_FATAL, 0, gettext(errmsg[i])); + message(L_FATAL, 0, "%s", gettext(errmsg[i])); fail(); } } @@ -112,7 +112,7 @@ inline static void debug_message (const char * s, const char * fname) { #ifdef INCLUDE_DEBUG_MSGS - message (L_DEBUG, s, fname); + message (L_DEBUG, fname, "%s", s); #endif } @@ -137,7 +137,7 @@ debug(const char * s, ...) inline static void errno_msg(int severity, char const * fname) { - message(severity, strerror(errno), fname); + message(severity, fname, "%s", strerror(errno)); } #define enomem_msg _("cannot find enough memory") @@ -145,13 +145,13 @@ errno_msg(int severity, char const * fname) inline static void enomem (const char * fname) { - message (L_IMPORTANT, enomem_msg, fname); + message (L_IMPORTANT, fname, enomem_msg); } inline static void fatal_enomem (const char * fname) { - message(L_FATAL, enomem_msg, fname); + message(L_FATAL, fname, enomem_msg); fail(); } |