[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#702191: marked as done (libreoffice: usr/bin/libreoffice script bad symlink following)



Your message dated Mon, 22 Feb 2016 18:00:08 +0100 (CET)
with message-id <749244485.99154229.1456160408416.JavaMail.root@zimbra51-e8.priv.proxad.net>
and subject line Close 702191
has caused the Debian Bug report #702191,
regarding libreoffice: usr/bin/libreoffice script bad symlink following
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
702191: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=702191
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: libreoffice
Version: 1:3.5.4+dfsg-4
Severity: normal

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 debian 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.
in principle this should be possible in debian too as the code is the same.
the user got:
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

Replacing the sed line with readlink fixed the issue for the user.

--- End Message ---
--- Begin Message ---
forwarded 702191 https://bugs.documentfoundation.org/show_bug.cgi?id=62192
tags 702191 + confirmed
tags 702191 + upstream
tags 702191 + fixed-upstream
fixed 702191 1:4.3.0-2
stop
-----

Hello,

This bug has been fixed for a long time ago.

See comment https://bugs.documentfoundation.org/show_bug.cgi?id=62192#c7

and patch https://cgit.freedesktop.org/libreoffice/core/commit/?id=e75b8e9b4bf720f3bcf479c6915d7815bf8f3e6e

Released with branch 4.2.x

Regards,

-- 
Stéphane Aulery

--- End Message ---

Reply to: