Public bug reported:

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

** Affects: libreoffice (Ubuntu)
     Importance: Undecided
         Status: New

-- 
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” package in Ubuntu:
  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/ubuntu/+source/libreoffice/+bug/1141106/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to