Explorar o código

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

Jan Janak %!s(int64=21) %!d(string=hai) anos
pai
achega
0cbc5128de
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      scripts/ser_mysql.sh

+ 1 - 1
scripts/ser_mysql.sh

@@ -697,7 +697,7 @@ case $1 in
 			exit 1
 		fi
 		sed "s/[uU][sS][eE][rR]_[iI][dD]/user/g" $tmp_file |
-			sed "s/[uU][sS][eE][rR]/$USERCOL/g" |
+			sed "s/[uU][sS][eE][rR]\($\|[^a-zA-Z]\)/$USERCOL\1/g" |
 			sed "s/[rR][eE][aA][lL][mM]/domain/g"> ${tmp_file}.2
 		#3 drop original database
 		echo "dropping table ($DBNAME)"