From be06b886a255e6d899341f55808172a219a85799 Mon Sep 17 00:00:00 2001 From: Vladislav Vaintroub Date: Mon, 17 Jun 2013 19:18:14 +0200 Subject: MDEV-4503 : Installation fails if TEMP directory contains "~" subdirectory. Remove special handling for ~ in the middle of the path in cleanup_dir_name() - according to Monty, this was ancient code that tried to emulate Emacs behavior --- mysys/mf_pack.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'mysys') diff --git a/mysys/mf_pack.c b/mysys/mf_pack.c index d684be238e6..e246ff17f22 100644 --- a/mysys/mf_pack.c +++ b/mysys/mf_pack.c @@ -215,12 +215,6 @@ size_t cleanup_dirname(register char *to, const char *from) } else if (pos-start > 1 && pos[-1] == FN_CURLIB && pos[-2] == FN_LIBCHAR) pos-=2; /* Skip /./ */ - else if (pos > buff+1 && pos[-1] == FN_HOMELIB && pos[-2] == FN_LIBCHAR) - { /* Found ..../~/ */ - buff[0]=FN_HOMELIB; - buff[1]=FN_LIBCHAR; - start=buff; pos=buff+1; - } } } (void) strmov(to,buff); -- cgit v1.2.1