This patch was taken from upstream. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 47581