Hi,

I'm not sure whether this is invalid, as it will affect anyone who
happens to have '/' character in the JAVA_OPTS, and I guess it is not
that rare. Postinstall should escape those strings before it puts them
to sed command line. I'm not sed expert, but it could be done with
something like below. Or at least one could replace '/' as control
character in substitution with '#' or some other rarer character.

j...@intra ~% export BAR=bar
j...@intra ~% echo foo | sed "s/foo/$BAR/"
bar
j...@intra ~% export BAR=bar/bar
j...@intra ~% echo foo | sed "s/foo/`$BAR/"
sed: -e expression #1, char 11: unknown option to `s'
j...@intra ~% echo foo | sed 's/foo/'`echo -n $BAR | sed 's#/#\\\/#g'`'/'
bar/bar

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to tomcat6 in ubuntu.
https://bugs.launchpad.net/bugs/690138

Title:
  tomcat6 installation failure on Ubuntu 10.10

-- 
Ubuntu-server-bugs mailing list
[email protected]
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to