Browse code

A regular expression matching user does not match username anymore (caused wrong expansion of username to usernamename)

Jan Janak authored on 25/04/2004 19:48:06
Showing 1 changed files
... ...
@@ -697,7 +697,7 @@ case $1 in
697 697
 			exit 1
698 698
 		fi
699 699
 		sed "s/[uU][sS][eE][rR]_[iI][dD]/user/g" $tmp_file |
700
-			sed "s/[uU][sS][eE][rR]/$USERCOL/g" |
700
+			sed "s/[uU][sS][eE][rR]\($\|[^a-zA-Z]\)/$USERCOL\1/g" |
701 701
 			sed "s/[rR][eE][aA][lL][mM]/domain/g"> ${tmp_file}.2
702 702
 		#3 drop original database
703 703
 		echo "dropping table ($DBNAME)"