>Description:
        The mysqlhotcopy script fails with recent versions of perl.

>How-To-Repeat:
        Invoke mysqlhotcopy with perl 5.6.1. (I'm on a NetBSD box.)
        The script fails, complaining it can't create the target directory.

>Fix:
        In the section of the script that creates the target folder
        (line 400 or so) add this line to remove the trailing slash:

        $tgt_dirpath =~ s/\/$//;

>Submitter-Id:  <submitter ID>
>Originator:    Scott Lahteine
>Organization:
        Critical Path Software
>MySQL support: none
>Synopsis:      The mysqlhotcopy script fails
>Severity:      serious
>Priority:      medium
>Category:      mysql
>Class:         sw-bug
>Release:       mysql-3.23.49 (Source distribution)

>Environment: i386 NetBSD
System: NetBSD wwwdev.criticalpath.com 1.5.2 NetBSD 1.5.2 (WWWDEV) #0: Thu Nov 15 
10:26:08 PST 2001     
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/WWWDEV i386


Some paths:  /usr/bin/perl /usr/bin/make /usr/pkg/bin/gmake /usr/bin/gcc /usr/bin/cc
GCC: Using builtin specs.
gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release)
Compilation info: CC='cc'  CFLAGS='-I/usr/pkg/include -O2'  CXX='c++'  
CXXFLAGS='-I/usr/pkg/include -I/usr/pkg/include -O2'  LDFLAGS='-L/usr/pkg/lib  
-Wl,-R/usr/pkg/lib/mysql -Wl,-R/usr/pkg/lib'
LIBC: 
-r--r--r--  1 root  wheel  1204396 Aug 23  2001 /usr/lib/libc.a
lrwxr-xr-x  1 root  wheel  15 Aug 23  2001 /usr/lib/libc.so -> libc.so.12.62.1
lrwxr-xr-x  1 root  wheel  15 Aug 23  2001 /usr/lib/libc.so.12 -> libc.so.12.62.1
-r--r--r--  1 root  wheel  616052 Aug 23  2001 /usr/lib/libc.so.12.62.1
Configure command: ./configure  --localstatedir=/var/mysql --with-named-z-libs=z 
--without-libwrap '--with-named-curses-libs=-lcurses -ltermcap' --without-readline 
--without-docs --without-debug --without-bench --with-low-memory --without-server 
--host=i386--netbsdelf --prefix=/usr/pkg


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to