case "$1" in
configure)
# Need to do it like this to avoid shell injection
- /usr/bin/perl -i -e '$r = `invirt-getconf kerberos.realm`; $r.chomp;
+ /usr/bin/perl -i -e '$r = `invirt-getconf kerberos.realm`; chomp($r);
while(<>) { s/^([ \t]*default_realm *=).*$/\1 $r/m; print; }' /etc/krb5.conf.invirt
;;