summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2013-12-14 03:52:20 +0100
committerGuillem Jover <guillem@debian.org>2013-12-17 05:28:46 +0100
commit4ab4758e01571f7dd8a0e6878149783128bb9e2c (patch)
tree4afb3841754bf5f070ccb369220abd78a382fbcd /src
parenta363181bda0e752130176542fb259e5a5bab24d1 (diff)
downloaddpkg-4ab4758e01571f7dd8a0e6878149783128bb9e2c.tar.gz
dpkg-deb, dpkg: Unify and clarify conffile name length error message
Clarify the error message, by stating it's either too long or missing a final newline, and unify it to be the same on both dpkg-deb and dpkg. Closes: #108196
Diffstat (limited to 'src')
-rw-r--r--src/unpack.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/unpack.c b/src/unpack.c
index 51efbafd7..66b872fff 100644
--- a/src/unpack.c
+++ b/src/unpack.c
@@ -629,8 +629,8 @@ void process_archive(const char *filename) {
p= conffilenamebuf + strlen(conffilenamebuf);
assert(p != conffilenamebuf);
if (p[-1] != '\n')
- ohshit(_("name of conffile (starting `%.250s') is too long (>%d characters)"),
- conffilenamebuf, MAXCONFFILENAME);
+ ohshit(_("conffile name '%s' is too long, or missing final newline"),
+ conffilenamebuf);
while (p > conffilenamebuf && isspace(p[-1])) --p;
if (p == conffilenamebuf) continue;
*p = '\0';