← Back to team overview

desktop-packages team mailing list archive

[Bug 1141106] Re: usr/bin/libreoffice script bad symlink following

 

** Changed in: libreoffice (Ubuntu)
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to libreoffice in Ubuntu.
https://bugs.launchpad.net/bugs/1141106

Title:
  usr/bin/libreoffice script bad symlink following

Status in LibreOffice Productivity Suite:
  Fix Released
Status in libreoffice package in Ubuntu:
  Fix Released
Status in libreoffice package in Debian:
  New

Bug description:
  1:4.0.0~beta2-0ubuntu2

  content of usr/bin/libreoffice:

  sd_cwd=`pwd`
  sd_res=$0
  while [ -h "$sd_res" ] ; do
      cd "`dirname "$sd_res"`"
      sd_basename=`basename "$sd_res"`
      sd_res=`ls -l "$sd_basename" | sed "s/.*$sd_basename -> //g"`
  done
  cd "`dirname "$sd_res"`"
  sd_prog=`pwd`
  cd "$sd_cwd"


  sd_res is a symlink in ubuntu so it goes in there
  please use something sane like readlink to get the target instead of that weird sed line

  a user in #ubuntu+1 reports issues with it because he apparently has some invalid locale in the month part of ls -l:
  he gets:
  02:04 <Allard> /usr/bin/libreoffice: 49: cd: can't cd to lrwxrwxrwx 1 root root 34 ���../lib/libreoffice/program
  02:04 <Allard> /usr/bin/libreoffice: 156: exec: /usr/bin/oosplash: not found

To manage notifications about this bug go to:
https://bugs.launchpad.net/df-libreoffice/+bug/1141106/+subscriptions