diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/configure.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/configure.c b/src/configure.c index c75e8c334..a925baf21 100644 --- a/src/configure.c +++ b/src/configure.c @@ -45,6 +45,7 @@ #include <dpkg/string.h> #include <dpkg/buffer.h> #include <dpkg/file.h> +#include <dpkg/path.h> #include <dpkg/subproc.h> #include <dpkg/command.h> #include <dpkg/triglib.h> @@ -659,9 +660,7 @@ promptconfaction(struct pkginfo *pkg, const char *cfgfile, else if (what & cfof_install) fprintf(stderr, _(" The default action is to install the new version.\n")); - s = strrchr(cfgfile, '/'); - if (!s || !*++s) - s = cfgfile; + s = path_basename(cfgfile); fprintf(stderr, "*** %s (Y/I/N/O/D/Z) %s ? ", s, (what & cfof_keep) ? _("[default=N]") : |