From e4b791fabe3c01db1bd15ad97ec642b6b978d489 Mon Sep 17 00:00:00 2001 From: Vladimir 'phcoder' Serbinenko Date: Fri, 2 Mar 2012 14:58:53 +0100 Subject: [PATCH] * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix absolutely unclear error message. --- ChangeLog | 5 +++++ util/getroot.c | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 30d8b363a..a3b920ee3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2012-03-02 Vladimir Serbinenko + + * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix + absolutely unclear error message. + 2012-03-02 Vladimir Serbinenko * util/grub-mkstandalone.in: Remove confusing leftover print. diff --git a/util/getroot.c b/util/getroot.c index 29ff96b81..2389fc9a0 100644 --- a/util/getroot.c +++ b/util/getroot.c @@ -2646,7 +2646,11 @@ grub_make_system_path_relative_to_its_root (const char *path) if (p == NULL) /* This should never happen. */ grub_util_error ("%s", - _("FIXME: no / in buf. (make_system_path_relative_to_its_root)")); + /* TRANSLATORS: canonical pathname is the + complete one e.g. /etc/fstab. It has + to contain / normally, if it doesn't + we're in trouble and throw this error. */ + _("no / in canonical filename")); if (p != buf) *p = 0; else