[rt-users] Bugfix: variable interpolation in db password
Marc Hedlund
marc at precipice.org
Sun Sep 16 19:39:56 EDT 2001
Hi,
I just installed rt-2.0.7 on a RH Linux-7.1 box with MySQL-3.23.42. I
encountered an error on make install; the attached patch fixes the error.
I had chosen a database password with the character '@' in it. I received
an error during make install saying that the rt_user password was
invalid. Looking up the error stack I saw that the '@' character was
causing variable interpolation in config.pm. The attached patch uses
single quotes instead of double quotes around $DatabasePassword in
config.pm. After applying the patch install worked without a problem.
Hope this helps. Thanks,
Marc Hedlund
e: marc at precipice dot org
-------------- next part --------------
# This is a patch for rt-2-0-7 to update it to rt-2-0-7
#
# To apply this patch:
# STEP 1: Chdir to the source directory.
# STEP 2: Run the 'applypatch' program with this patch file as input.
#
# If you do not have 'applypatch', it is part of the 'makepatch' package
# that you can fetch from the Comprehensive Perl Archive Network:
# http://www.perl.com/CPAN/authors/Johan_Vromans/makepatch-x.y.tar.gz
# In the above URL, 'x' should be 2 or higher.
#
# To apply this patch without the use of 'applypatch':
# STEP 1: Chdir to the source directory.
# STEP 2: Run the 'patch' program with this file as input.
#
#### End of Preamble ####
#### Patch data follows ####
diff -c '/usr/tmp/mp7972.d/old/rt-2-0-7/etc/config.pm' 'rt-2-0-7/etc/config.pm'
Index: ./etc/config.pm
Prereq: 1.11.2.79
*** ./etc/config.pm Thu Aug 23 18:45:34 2001
--- ./etc/config.pm Sun Sep 16 18:31:43 2001
***************
*** 52,58 ****
$DatabaseUser="!!DB_RT_USER!!";
# Password the DatabaseUser should use to access the database
! $DatabasePassword="!!DB_RT_PASS!!";
# The name of the RT's database on your database server
--- 52,58 ----
$DatabaseUser="!!DB_RT_USER!!";
# Password the DatabaseUser should use to access the database
! $DatabasePassword='!!DB_RT_PASS!!';
# The name of the RT's database on your database server
#### End of Patch data ####
#### ApplyPatch data follows ####
# Data version : 1.0
# Date generated : Sun Sep 16 18:32:02 2001
# Generated by : makepatch 2.00_05
# Recurse directories : Yes
# p 'etc/config.pm' 13671 1000683103 0100755
#### End of ApplyPatch data ####
#### End of Patch kit [created: Sun Sep 16 18:32:02 2001] ####
#### Patch checksum: 34 1046 10651 ####
#### Checksum: 52 1723 884 ####
More information about the rt-users
mailing list