summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntti-Juhani Kaijanaho <ajk@debian.org>2011-07-23 16:35:25 +0300
committerAntti-Juhani Kaijanaho <ajk@debian.org>2011-07-23 16:35:25 +0300
commit225f7827155d61c26d29365f887588f3b2b3dc9a (patch)
tree40169e7d44387c60df5b02717d26adda0b964f5a
parent7c4297b6b15bb83db0b964774d81fa993cdc20c8 (diff)
downloaddctrl-tools-225f7827155d61c26d29365f887588f3b2b3dc9a.tar.gz
Importing 2.18ubuntu1
-rw-r--r--debian/changelog7
-rw-r--r--grep-dctrl/rc.c18
-rw-r--r--join-dctrl/join-dctrl.c2
-rw-r--r--lib/msg.h8
4 files changed, 21 insertions, 14 deletions
diff --git a/debian/changelog b/debian/changelog
index a8169be..fcf3e7f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+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
* debian/rules: Override prefix and sysconfdir even for building
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();
}
}
diff --git a/lib/msg.h b/lib/msg.h
index 23cf1ce..e61b3a4 100644
--- a/lib/msg.h
+++ b/lib/msg.h
@@ -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();
}